Skip to content

Commit

Permalink
Applying optimization from 'ermayer' Reduces functions called from Fo…
Browse files Browse the repository at this point in the history
…lder::addPathElement() Fixes #178
  • Loading branch information
markstory committed Oct 28, 2009
1 parent 23ab845 commit ad305a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/folder.php
Expand Up @@ -302,7 +302,7 @@ function slashTerm($path) {
* @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.
Expand Down

0 comments on commit ad305a8

Please sign in to comment.