diff --git a/cake/libs/folder.php b/cake/libs/folder.php index 28f32672a3e..a5331f80f51 100644 --- a/cake/libs/folder.php +++ b/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.