Skip to content
Permalink
Browse files

Applying optimization from 'ermayer' Reduces functions called from Fo…

…lder::addPathElement() Fixes #178
  • Loading branch information...
markstory committed Oct 28, 2009
1 parent 23ab845 commit ad305a890a9854f55b6da97d734f6e738a024066
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/folder.php
@@ -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.

0 comments on commit ad305a8

Please sign in to comment.
You can’t perform that action at this time.