Fixed bug #7425: syntax error in temp_CACHE*.php (patch by Steffen Kamper)
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Tue, 19 Feb 2008 07:50:10 +0000 (07:50 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Tue, 19 Feb 2008 07:50:10 +0000 (07:50 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3229 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_extmgm.php

index c0f3362..beaad36 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2008-02-19  Dmitry Dulepov  <dmitry@typo3.org>
 
        * Fixed bug #3491: Linking between domains in the pagetree ignores simulate static documents
+       * Fixed bug #7425: syntax error in temp_CACHE*.php (patch by Steffen Kamper)
 
 2008-02-19  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
 
index 3fc007b..e5f49e2 100644 (file)
@@ -1154,7 +1154,10 @@ $TYPO3_LOADED_EXT = unserialize(stripslashes(\''.addslashes(serialize($extension
                                }
                        }
                }
-
+               
+               $cFiles['ext_localconf'] = "<?php\n" . preg_replace('/<\?php|\?>/is', '', $cFiles['ext_localconf']) . "?>\n";
+               $cFiles['ext_tables'] = "<?php\n" . preg_replace('/<\?php|\?>/is', '', $cFiles['ext_tables']) . "?>\n";
+               
                t3lib_div::writeFile(PATH_typo3conf.$cacheFilePrefix.'_ext_localconf.php',$cFiles['ext_localconf']);
                t3lib_div::writeFile(PATH_typo3conf.$cacheFilePrefix.'_ext_tables.php',$cFiles['ext_tables']);