Applying optimization from 'ermayer' Reduces functions called from Folder::addPathElement() Fixes #178

This commit is contained in:
mark_story 2009-10-27 21:06:58 -04:00
parent 23ab84596a
commit ad305a890a

View file

@ -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.