Project

General

Profile

Actions

Bug #18369

closed

EM warns No XCLASS inclusion code found if you use $GLOBALS['TYPO3_CONF_VARS']

Added by Franz Holzinger over 16 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-03-04
Due date:
% Done:

0%

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

Description

Some newer PHP5 versions did not find the $TYPO3_CONF_VARS variable. You have had to set explcitely global $TYPO3_CONF_VARS in each PHP file. And inspite of this, sometimes it still did not have it.
To solve this issue I have changed $TYPO3_CONF_VARS to $GLOBALS['TYPO3_CONF_VARS'] in each PHP file.

But now the EM warns with many red lines even if the XCLASS is provided. Example:

if (defined('TYPO3_MODE') && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/tt_products/view/class.tx_ttproducts_single_view.php']) {
include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/tt_products/view/class.tx_ttproducts_single_view.php']);
}

(issue imported from #M7753)


Files

7753.diff (2.26 KB) 7753.diff Administrator Admin, 2008-10-24 19:35
7753-static_info_tables-1.png (22.7 KB) 7753-static_info_tables-1.png Administrator Admin, 2008-11-01 10:18
patch2-7753.diff (3.44 KB) patch2-7753.diff Administrator Admin, 2010-05-01 08:46
7753_v3.diff (2.61 KB) 7753_v3.diff Administrator Admin, 2010-05-20 13:50
Actions

Also available in: Atom PDF