Index: typo3/mod/tools/em/class.em_index.php =================================================================== --- typo3/mod/tools/em/class.em_index.php (revision 6042) +++ typo3/mod/tools/em/class.em_index.php (working copy) @@ -4097,6 +4097,7 @@ function getClassIndexLocallangFiles($absPath,$table_class_prefix,$extKey) { $filesInside = t3lib_div::removePrefixPathFromList(t3lib_div::getAllFilesAndFoldersInPath(array(),$absPath,'php,inc',0,99,$this->excludeForPackaging),$absPath); $out = array(); + $reg = array(); foreach($filesInside as $fileName) { if (substr($fileName,0,4)!='ext_' && substr($fileName,0,6)!='tests/') { // ignore supposed-to-be unit tests as well @@ -4174,6 +4175,7 @@ $lines = explode(chr(10),t3lib_div::getUrl($confFilePath)); $confFileInfo = array(); $confFileInfo['lines'] = $lines; + $reg = array(); foreach($lines as $k => $l) { $line = trim($l); @@ -4479,6 +4481,7 @@ $lines = explode(chr(10),t3lib_div::getUrl($confFilePath)); $confFileInfo = array(); $confFileInfo['lines'] = $lines; + $reg = array(); $flag_M = 0; $flag_B = 0; @@ -4757,8 +4760,9 @@ * @return array Array with header/content as key 0/1 * @see makeUploadArray() */ - function getSerializedLocalLang($file,$content) { - $returnParts = explode('$LOCAL_LANG',$content,2); + function getSerializedLocalLang($file, $content) { + $LOCAL_LANG = NULL; + $returnParts = explode('$LOCAL_LANG', $content, 2); include($file); if (is_array($LOCAL_LANG)) { @@ -5947,7 +5951,8 @@ * @param string Extension key. * @return array EMconf array values. */ - function includeEMCONF($path,$_EXTKEY) { + function includeEMCONF($path, $_EXTKEY) { + $EM_CONF = NULL; @include($path); if(is_array($EM_CONF[$_EXTKEY])) { return $this->fixEMCONF($EM_CONF[$_EXTKEY]); @@ -6037,26 +6042,26 @@ continue; } - $v = $this->xmlhandler->extensionsXML[$name][versions]; + $v = $this->xmlhandler->extensionsXML[$name]['versions']; $versions = array_keys($v); $lastversion = end($versions); if ((t3lib_extMgm::isLoaded($name) || $this->MOD_SETTINGS['display_installed']) && - ($data[EM_CONF][shy] == 0 || $this->MOD_SETTINGS['display_shy']) && - $this->versionDifference($lastversion, $data[EM_CONF][version], 1)) { + ($data['EM_CONF']['shy'] == 0 || $this->MOD_SETTINGS['display_shy']) && + $this->versionDifference($lastversion, $data['EM_CONF']['version'], 1)) { - $imgInfo = @getImageSize($this->getExtPath($name,$data['type']).'/ext_icon.gif'); + $imgInfo = @getImageSize($this->getExtPath($name, $data['type']) . '/ext_icon.gif'); if (is_array($imgInfo)) { $icon = ''; - } elseif ($extInfo['_ICON']) { - $icon = $extInfo['_ICON']; + } elseif ($data['_ICON']) { //TODO: see if this can be removed, seems to be wrong in this context + $icon = $data['_ICON']; } else { $icon = ''; } $comment = '
'.$vk.' | '.''.nl2br($va[uploadcomment]).' |