Project

General

Profile

Actions

Bug #24997

closed

EM gets instantiated before XCLASS definition

Added by Jesper Paardekooper about 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
Start date:
2011-02-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

bug_17538.diff (1.15 KB) bug_17538.diff Administrator Admin, 2011-02-10 14:42
bug_17538_v2.diff (1.25 KB) bug_17538_v2.diff Administrator Admin, 2011-02-10 15:13
Actions #1

Updated by Jesper Paardekooper about 13 years ago

Added the right patch (bug_17538_v2.diff), made a mistake first time. This patch will change the order of the code.

Actions #2

Updated by Steffen Kamper about 13 years ago

committed this no-brainer to em branch rev 4106

Actions

Also available in: Atom PDF