Issue Feature Closed

#23394XCLASS Code looks ugly and could get a facelift

Popy no-lastname-given 08/18/10, 10:35 updated 04/16/12, 23:22

Description

Since years we have the same (ugly) XCLASS statement at the end of every php class file, and we still have the same “global scope bug” if file is not included with t3lib_div::requireFile

So, the idea is to replace :

if (defined(‘TYPO3_MODE’) && $TYPO3_CONF_VARS[TYPO3_MODE][‘XCLASS’][‘t3lib/class.t3lib_extfilefunc.php’]) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE][‘XCLASS’][‘t3lib/class.t3lib_extfilefunc.php’]);
}

by :

t3lib_div::XCLASS;

(issue imported from #M15486)

Reviews 0

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