Commit ce0c66cd authored by Kasper Skårhøj's avatar Kasper Skårhøj
Browse files

* Fixed distinction between ' and " in EM.


git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@171 709f56b5-9817-0410-a4d7-c38de5d9e867
parent 2fc27949
2004-03-31 Kasper Skårhøj,,, <kasper@typo3.com>
* Fixed distinction between ' and " in EM.
2004-03-31 Kasper Skårhøj,,, <kasper@typo3.com>
* Removed "onblur" handler in "browser.php" - had no great significance apparently and bugged people on Mac.
......
......@@ -2706,14 +2706,14 @@ EXTENSION KEYS:
}
}
//
$XclassParts = explode('if (defined(\'TYPO3_MODE\') && $TYPO3_CONF_VARS[TYPO3_MODE][\'XCLASS\']',$fContent,2);
$XclassParts = split('if \(defined\([\'"]TYPO3_MODE[\'"]\) && \$TYPO3_CONF_VARS\[TYPO3_MODE\]\[[\'"]XCLASS[\'"]\]',$fContent,2);
if (count($XclassParts)==2) {
unset($reg);
ereg('^\[\'([[:alnum:]_\/\.]*)\'\]',$XclassParts[1],$reg);
ereg('^\[[\'"]([[:alnum:]_\/\.]*)[\'"]\]',$XclassParts[1],$reg);
if ($reg[1]) {
$cmpF = 'ext/'.$extKey.'/'.$fileName;
if (!strcmp($reg[1],$cmpF)) {
if (strstr($XclassParts[1],'_once($TYPO3_CONF_VARS[TYPO3_MODE][\'XCLASS\'][\''.$cmpF.'\']);')) {
if (ereg('_once\(\$TYPO3_CONF_VARS\[TYPO3_MODE\]\[[\'"]XCLASS[\'"]\]\[[\'"]'.$cmpF.'[\'"]\]\);', $XclassParts[1])) {
$out['msg'][] = 'XCLASS OK in '.$fileName;
} else $out['errors'][] = 'Couldn\'t find the include_once statement for XCLASS!';
} else $out['errors'][] = 'The XCLASS filename-key "'.$reg[1].'" was different from "'.$cmpF.'" which it should have been!';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment