function onAfterRender() { // Check if JoomSEF should be run if (!self::_isEnabled() || !class_exists('JoomSEF') || !JoomSEF::enabled($this)) { return; } // Change the index.php links to / $sefConfig = SEFConfig::getConfig(); if ($sefConfig->fixIndexPhp) { $this->_fixIndexLinks(); } //$this->_fixSubDomains(); }
function onAfterRender() { $mainframe =& JFactory::getApplication(); // Do not run plugin in administration area if ($mainframe->isAdmin()) { return; } // Check if SEF and plugin are enabled if (!class_exists('JoomSEF') || !JoomSEF::enabled($this)) { return; } // Change the index.php links to / $sefConfig =& SEFConfig::getConfig(); if ($sefConfig->fixIndexPhp) { $this->_fixIndexLinks(); } // Fix links with missing question mark (ie. VM issue) if ($sefConfig->fixQuestionMark) { $this->_fixQuestionMark(); } }