Bug #3625 ยป 3625.patch
| 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;
 
   | 
||