Index: administrator/components/com_comprofiler/plugin.foundation.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- administrator/components/com_comprofiler/plugin.foundation.php +++ administrator/components/com_comprofiler/plugin.foundation.php @@ -2851,7 +2851,15 @@ 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;