Bug #18374
closed
XCLASSing USER_INT objects does not work
Added by Frank Nägler over 16 years ago.
Updated over 14 years ago.
Description
Since update to TYPO3 4.1.6 the XCLASS function does not work any more.
in my installation i use an extension which xclasses the newloginbox. since my update to 4.1.6 the xclass would not be called. if I downgrade to 4.1.5 it works as expected.
(issue imported from #M7759)
Files
Same on my installation. After upgrading to 4.1.6, none of my xclasses is loaded any more (PHP 5.2.5, linux)
I just saw that in 4.1.5 the user scripts (plugins) where included in index_ts.php.
When the plugin, e.g. newloginbox, checks for xclasses, it will work. $TYPO3_CONF_VARS is available.
Since 4.1.6 the scripts were included inside a class method in tslib_fe. When the plugin script is included now, it can't use $TYPO3_CONF_VARS to look for xclasses, it has to look in $GLOBALS['TYPO3_CONF_VARS'] for xclasses.
Quick solution would be, in my view, to go back to 4.1.5 or to change the xclass inclusion parts to $GLOBALS['TYPO3_CONF_VARS'] instead of $TYPO3_CONF_VARS
Please test the attached small patch which should solve this bug.
Yes, the patch works for me. Thanks!
Updated patches:
- TYPO3 4.1.x: 0007759_41.patch
- TYPO3 4.2: 0007759_42.patch
Committed to SVN:
- TYPO3_4-1 (rev. 3485) --> TYPO3 4.1.7
- TYPO3_4-2 (rev. 3486)
Also available in: Atom
PDF