public function getNewAlias($alias, $fromLangTag, $toLangTag, $row = null, $generateFrom = '', $makeUnique = false) { if (empty($generateFrom)) { if (is_array($row) && isset($row['type'])) { if ($row['type'] == 'alias' || $row['type'] == 'url') { //$generateFrom = 'alias'; $date = JFactory::getDate()->format('Y-m-d-H-i-s'); return parent::getNewAlias($date, $fromLangTag, $toLangTag, $row, $generateFrom, $makeUnique); } } } return parent::getNewAlias($alias, $fromLangTag, $toLangTag, $row, $generateFrom, $makeUnique); }