| Current Path : /var/www/iplanru/data/old/www/i-plan.ru/components/com_sef/sef_ext/ |
| Current File : /var/www/iplanru/data/old/www/i-plan.ru/components/com_sef/sef_ext/com_wrapper.php |
<?php
/**
* Wrapper SEF extension for Joomla!
*
* @author $Author: David Jozefov $
* @copyright ARTIO s.r.o., http://www.artio.cz
* @package JoomSEF
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access.');
class SefExt_com_wrapper extends SefExt
{
function beforeCreate(&$uri) {
// Set the default view if not set
if( is_null($uri->getVar('view')) ) {
$uri->setVar('view', 'wrapper');
}
}
function create(&$uri) {
$vars = $uri->getQuery(true);
extract($vars);
$title = array();
$title[] = JoomSEF::_getMenuTitle(@$option, null, @$Itemid);
$newUri = $uri;
if (count($title) > 0) {
$newUri = JoomSEF::_sefGetLocation($uri, $title, null, null, null, @$lang);
}
return $newUri;
}
}
?>