29
0
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:
Johan Janssens 2007-11-20 18:11:34 +00:00
parent aa7ad52aae
commit 717768a892

View File

@ -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;
}