Fixed bug #17428: Parsetime comment is inserted BEFORE !doctype and html tag (Thanks...
authorChristian Kuhn <lolli@schwarzbu.ch>
Wed, 2 Feb 2011 08:45:26 +0000 (08:45 +0000)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 2 Feb 2011 08:45:26 +0000 (08:45 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10369 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/index_ts.php

index 73ebde7..65a6066 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-02  Christian Kuhn  <lolli@schwarzbu.ch>
+
+       * Fixed bug #17428: Parsetime comment is inserted BEFORE !doctype and html tag (Thanks to Georg Ringer)
+
 2011-02-02  Jigal van Hemert  <jigal@xs4all.nl>
 
        * Fixed bug #17436 typo in class.tslib_adminpanel.php (Thanks to Bjoern Pedersen)
index f75efb3..6b8d04a 100644 (file)
@@ -527,8 +527,7 @@ $TSFE->storeSessionData();
 $TYPO3_MISC['microtime_end'] = microtime(true);
 $TSFE->setParseTime();
 if ($TSFE->isOutputting() && (!empty($TSFE->TYPO3_CONF_VARS['FE']['debug']) || !empty($TSFE->config['config']['debug']))) {
-       echo '
-<!-- Parsetime: '.$TSFE->scriptParseTime.' ms-->';
+       $TSFE->content .=  LF . '<!-- Parsetime: ' . $TSFE->scriptParseTime . 'ms -->';
 }
 $TSFE->statistics();