Re-use existing string instead of making another one.

This commit is contained in:
mark_story 2013-03-18 21:27:00 -04:00
parent 1ebb2ed0a0
commit ca10c49e21

View file

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