HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/confeduphaar/backip-old-files/administrator/components/com_jevents/fields/jevhtml.php
<?php

use Joomla\CMS\Language\Text;
use Joomla\CMS\Form\Field\EditorField;

/**
 * JEvents Locations Component for Joomla 1.5.x
 *
 * @version     $Id: jevboolean.php 1331 2010-10-19 12:35:49Z geraintedwards $
 * @package     JEvents
 * @copyright   Copyright (C) 2008-2020 GWESystems Ltd
 * @license     GNU/GPLv2, see http://www.gnu.org/licenses/gpl-2.0.html
 * @link        http://www.jevents.net
 */

// Check to ensure this file is included in Joomla!

defined('JPATH_BASE') or die;


if (version_compare(JVERSION, "3.8.0", 'ge'))
{
	\Joomla\CMS\Form\FormHelper::loadFieldClass('editor');
}
else if (file_exists(JPATH_SITE . "/libraries/joomla/form/fields/editor.php"))
{
	include_once(JPATH_SITE . "/libraries/joomla/form/fields/editor.php");
}
jimport('joomla.html.editor');

class JFormFieldJevhtml extends EditorField
{
	protected function getInput()
	{

		$this->value = str_replace('<br />', "\n", Text::_($this->value));

		JLoader::register('JEVHelper', JPATH_SITE . "/components/com_jevents/libraries/helper.php");
		JEVHelper::ConditionalFields($this->element, $this->form->getName());

		return parent::getInput();
	}

}