<?php
/**
 * JEvents Component for Joomla! 3.x
 *
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();


include_once(JPATH_SITE."/libraries/joomla/form/fields/textarea.php");

class JFormFieldJevtextarea extends JFormFieldTextarea
{
	protected function getInput()
	{
		$this->value = str_replace('<br />', "\n", strpos($this->value, " ")>0 ? $this->value : JText::_($this->value));

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

		return parent::getInput();
	}
	
}