Commit c0994750ac320b9e6b00348978d42983537db603
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
Showing
1 changed file
with
3 additions
and
4 deletions
lib/foldermanagement/Folder.inc
| ... | ... | @@ -475,10 +475,9 @@ class Folder { |
| 475 | 475 | * @return String full path of folder |
| 476 | 476 | */ |
| 477 | 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 | /** | ... | ... |