mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-02 17:42:41 +00:00
Applying optimization from 'ermayer' Reduces functions called from Folder::addPathElement() Fixes #178
This commit is contained in:
parent
23ab84596a
commit
ad305a890a
1 changed files with 1 additions and 1 deletions
|
@ -302,7 +302,7 @@ class Folder extends Object {
|
|||
* @static
|
||||
*/
|
||||
function addPathElement($path, $element) {
|
||||
return Folder::slashTerm($path) . $element;
|
||||
return rtrim($path, DS) . DS . $element;
|
||||
}
|
||||
/**
|
||||
* Returns true if the File is in a given CakePath.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue