Bug #17506 » EM_error_info.diff
class.em_index.php (copie de travail) | ||
---|---|---|
function init() {
|
||
global $BE_USER,$LANG,$BACK_PATH,$TYPO3_CONF_VARS;
|
||
// Setting paths of install scopes:
|
||
$this->typePaths = Array (
|
||
'S' => TYPO3_mainDir.'sysext/',
|
||
... | ... | |
function main() {
|
||
global $BE_USER,$LANG,$TYPO3_CONF_VARS;
|
||
if (empty($this->MOD_SETTINGS['mirrorListURL'])) $this->MOD_SETTINGS['mirrorListURL'] = $TYPO3_CONF_VARS['EXT']['em_mirrorListURL'];
|
||
// Starting page:
|
||
... | ... | |
if ($BE_USER->mayMakeShortcut()) {
|
||
$this->content.=$this->doc->spacer(20).$this->doc->section('',$this->doc->makeShortcutIcon('CMD','function',$this->MCONF['name']));
|
||
}
|
||
}
|
||
/**
|
||
... | ... | |
$this->content.=$this->doc->section('Available Extensions - Grouped by: '.$this->MOD_MENU['listOrder'][$this->MOD_SETTINGS['listOrder']],$content,0,1);
|
||
}
|
||
}
|
||
/**
|
||
... | ... | |
$extList = t3lib_div::get_dirs($path);
|
||
if (is_array($extList)) {
|
||
foreach($extList as $extKey) {
|
||
if (@is_file($path.$extKey.'/ext_emconf.php')) {
|
||
$emConf = $this->includeEMCONF($path.$extKey.'/ext_emconf.php', $extKey);
|
||
$filename = $path.$extKey.'/ext_emconf.php';
|
||
if (@is_file($filename)) {
|
||
$emConf = $this->includeEMCONF($filename, $extKey);
|
||
if (is_array($emConf)) {
|
||
if (is_array($list[$extKey])) {
|
||
$list[$extKey]=array('doubleInstall'=>$list[$extKey]['doubleInstall']);
|
||
... | ... | |
$this->setCat($cat,$list[$extKey], $extKey);
|
||
}
|
||
} else {
|
||
debug ($filename.' not found.');
|
||
}
|
||
}
|
||
}
|
||
... | ... | |
* @return array EMconf array values.
|
||
*/
|
||
function includeEMCONF($path,$_EXTKEY) {
|
||
@include($path);
|
||
include($path);
|
||
if(is_array($EM_CONF[$_EXTKEY])) {
|
||
return $this->fixEMCONF($EM_CONF[$_EXTKEY]);
|
||
}
|