Bug #24997
closedEM gets instantiated before XCLASS definition
0%
Description
The EM gets instantiated before the XCLASS definition.
File: typo3/sysext/em/classes/index.php
Bottom of file, the following code:
// Make instance:
$SOBE = t3lib_div::makeInstance('SC_mod_tools_em_index');
$SOBE->init();
foreach ($SOBE->include_once as $INC_FILE) {
include_once($INC_FILE);
}
$SOBE->checkExtObj();
$SOBE->main();
$SOBE->printContent();*/
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['em/index.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['em/index.php']);
}
if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/sysext/em/classes/index.php'])) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/sysext/em/classes/index.php']);
}
It would be better if the // Make instance block would be moved under the XCLASS definition, so we can alter (or prevent) the output.
(issue imported from #M17538)
Files
Updated by Jesper Paardekooper almost 14 years ago
Added the right patch (bug_17538_v2.diff), made a mistake first time. This patch will change the order of the code.
Updated by Steffen Kamper almost 14 years ago
committed this no-brainer to em branch rev 4106