Browse Source

Re-use existing string instead of making another one.

mark_story 13 years ago
parent
commit
ca10c49e21
1 changed files with 1 additions and 2 deletions
  1. 1 2
      lib/Cake/View/View.php

+ 1 - 2
lib/Cake/View/View.php

@@ -566,8 +566,7 @@ class View extends Object {
 				if ($this->layout === 'xml') {
 					header('Content-type: text/xml');
 				}
-				$commentLength = strlen('<!--cachetime:' . $match['1'] . '-->');
-				return substr($out, $commentLength);
+				return substr($out, strlen($match[0]));
 			}
 		}
 	}