Index: class.t3lib_div.php =================================================================== --- class.t3lib_div.php (revision 8607) +++ class.t3lib_div.php (working copy) @@ -6018,6 +6018,19 @@ return '\'' . $escapedValue . '\''; } + /** + * Replace the XCLASS statement at end of a class file (avoid NOTICE ERROR, fix global scope) + * + * @param string $xclassKey + * @access static + * @return void + */ + public static function XCLASS($xclassKey) { + global $TYPO3_CONF_VARS; + if (defined('TYPO3_MODE') && isset($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS'][$xclassKey]) && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS'][$xclassKey]) { + self::requireOnce($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS'][$xclassKey]) + } + } /** * Ends and cleans all output buffers