mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Re-use existing string instead of making another one.
This commit is contained in:
parent
1ebb2ed0a0
commit
ca10c49e21
1 changed files with 1 additions and 2 deletions
|
@ -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]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue