Commit 98a31d30aae93f409ab3c45962c6556ca6e7d499
1 parent
5358777c
changed getFolderPathAsArray method to return an array of folderIDs instead of folderNames
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@525 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
3 deletions
lib/foldermanagement/Folder.inc
| ... | ... | @@ -301,16 +301,16 @@ class Folder { |
| 301 | 301 | * |
| 302 | 302 | * @param int primary key of folder to generate path for |
| 303 | 303 | * |
| 304 | - * @return array full path of folder as an array | |
| 304 | + * @return array full path of folder as an array of folderIDs | |
| 305 | 305 | */ |
| 306 | 306 | function getFolderPathAsArray($iFolderID) { |
| 307 | 307 | global $default; |
| 308 | 308 | //if the folder has a parent |
| 309 | 309 | if (Folder::getParentFolderID($iFolderID) != 0) { |
| 310 | 310 | $aPathArray = Folder::getFolderPathAsArray(Folder::getParentFolderID($iFolderID)); |
| 311 | - $aPathArray[] = Folder::getFolderName($iFolderID); | |
| 311 | + $aPathArray[] = $iFolderID; | |
| 312 | 312 | } else { |
| 313 | - $aPathArray[] = Folder::getFolderName($iFolderID); | |
| 313 | + $aPathArray[] = $iFolderID; | |
| 314 | 314 | } |
| 315 | 315 | return $aPathArray; |
| 316 | 316 | } | ... | ... |