Issue Bug Closed

#24997EM gets instantiated before XCLASS definition

Jesper Paardekooper 02/10/11, 13:26 updated 02/26/11, 01:11

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.