Project

General

Profile

Bug #3625 ยป 3625.patch

krileon, 02 August 2012 20:16

View differences:

administrator/components/com_comprofiler/plugin.foundation.php
static $idCache = null;
if ( $idCache === null ) {
if ( checkJversion() >= 2 ) {
$currentMenu = JFactory::getApplication()->getMenu()->getActive();
if ( $currentMenu && isset( $currentMenu->id ) ) {
$idCache = (int) $currentMenu->id;
}
if ( ! $idCache ) {
$idCache = (int) JFactory::getURI()->getVar( 'Itemid' );
$idCache = (int) JFactory::getURI()->getVar( 'Itemid' );
}
} else {
global $Itemid;
$idCache = (int) $Itemid;
    (1-1/1)