Commit c0994750ac320b9e6b00348978d42983537db603

Authored by michael
1 parent 8e96063f

fixed getFolderDisplayPath method


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1260 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/foldermanagement/Folder.inc
@@ -475,10 +475,9 @@ class Folder { @@ -475,10 +475,9 @@ class Folder {
475 * @return String full path of folder 475 * @return String full path of folder
476 */ 476 */
477 function getFolderDisplayPath($iFolderID) { 477 function getFolderDisplayPath($iFolderID) {
478 - global $default;  
479 - //if the folder has a parent  
480 - $oFolder = Folder::get($iFolderID);  
481 - return (strlen($oFolder->sFullPath) > 0 ? $oFolder->sFullPath . " > " : "") . $oFolder->getName(); 478 + global $default;
  479 + $aPathNamesArray = Folder::getFolderPathNamesAsArray($iFolderID);
  480 + return implode(" > ", $aPathNamesArray);
482 } 481 }
483 482
484 /** 483 /**