$vars = parent::_processParseRules($uri); // Process the pagination support if($this->_mode == JROUTER_MODE_SEF) { $app =& JFactory::getApplication(); if($start = $uri->getVar('start')) { $uri->delVar('start'); $vars['limitstart'] = $start; } } return $vars; } function _processBuildRules(&$uri) { // Make sure any menu vars are used if no others are specified if(($this->_mode != JROUTER_MODE_SEF) && $uri->getVar('Itemid') && count($uri->getQuery(true)) == 2) { $menu =& JSite::getMenu(); // Get the active menu item $itemid = $uri->getVar('Itemid'); $item = $menu->getItem($itemid); $uri->setQuery($item->query); $uri->setVar('Itemid', $itemid); } // Process the attached build rules parent::_processBuildRules($uri); // Get the path data $route = $uri->getPath(); if($this->_mode == JROUTER_MODE_SEF && $route) { $app =& JFactory::getApplication(); if ($limitstart = $uri->getVar('limitstart')) { $uri->setVar('start', (int) $limitstart); $uri->delVar('limitstart'); } } $uri->setPath($route); } function &_createURI($url) { //Create the URI $uri =& parent::_createURI($url); // Set URI defaults $menu =& JSite::getMenu(); // Get the itemid form the URI $itemid = $uri->getVar('Itemid'); if(is_null($itemid)) { if($option = $uri->getVar('option')) { $item = $menu->getItem($this->getVar('Itemid')); if(isset($item) && $item->component == $option) { $uri->setVar('Itemid', $item->id); } } else { if($option = $this->getVar('option')) { $uri->setVar('option', $option); } if($itemid = $this->getVar('Itemid')) { $uri->setVar('Itemid', $itemid); } } } else { if(!$uri->getVar('option')) { $item = $menu->getItem($itemid); $uri->setVar('option', $item->component); } } return $uri; } }
Fatal error: Class 'JRouterSite' not found in /mounted-storage/home96b/sub001/sc43417-REGJ/GPM/libraries/joomla/application/router.php on line 107