mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +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') {
|
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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue