title ) == '') { $this->setError( JText::_( 'The section must have a title') ); return false; } // Make sure we do have an alias if(empty($this->alias)) { $this->alias = $this->title; } // Make alias URL safe $this->alias = JFilterOutput::stringURLSafe($this->alias); $this->alias = str_replace('-','',$this->alias); if($this->alias == '') { $datenow =& JFactory::getDate(); $this->alias = $datenow->toFormat("%Y-%m-%d-%H-%M-%S"); } return true; } } ?>