mirror of
https://github.com/joomla/joomla-cms.git
synced 2024-06-29 16:43:42 +00:00
Fixed getRouter function to allow it to be called statically.
git-svn-id: http://joomlacode.org/svn/joomla/development/trunk@9407 6f6e1ebd-4c2b-0410-823f-f34bde69bce9
This commit is contained in:
parent
aa7ad52aae
commit
717768a892
|
@ -368,7 +368,8 @@ class JSite extends JApplication
|
|||
*/
|
||||
function &getRouter()
|
||||
{
|
||||
$options['mode'] = $this->getCfg('sef');
|
||||
$config =& JFactory::getConfig();
|
||||
$options['mode'] = $config->getValue('config.sef');
|
||||
$router =& parent::getRouter('site', $options);
|
||||
return $router;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user