Commit 1c61df708ea497362866185a73838d673efca37b
1 parent
a844aba6
KTS-2081
"Fatal error when renaming folder." Fixed. Committed By: Kevin Reviewed By: Conrad git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/trunk@6737 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
2 deletions
plugins/ktcore/folder/Rename.php
| @@ -60,7 +60,7 @@ class KTFolderRenameAction extends KTFolderAction { | @@ -60,7 +60,7 @@ class KTFolderRenameAction extends KTFolderAction { | ||
| 60 | $oTemplate->setData(array( | 60 | $oTemplate->setData(array( |
| 61 | 'context' => &$this, | 61 | 'context' => &$this, |
| 62 | 'fields' => $fields, | 62 | 'fields' => $fields, |
| 63 | - 'sFolderName' => $this->oFolder->getName(), | 63 | + 'folderName' => $this->oFolder->getName(), |
| 64 | )); | 64 | )); |
| 65 | return $oTemplate->render(); | 65 | return $oTemplate->render(); |
| 66 | } | 66 | } |
| @@ -87,7 +87,7 @@ class KTFolderRenameAction extends KTFolderAction { | @@ -87,7 +87,7 @@ class KTFolderRenameAction extends KTFolderAction { | ||
| 87 | } | 87 | } |
| 88 | } | 88 | } |
| 89 | 89 | ||
| 90 | - $res = KTDocumentUtil::rename($this->oDocument, sanitize($sFilename), $this->oUser); | 90 | + $res = KTFolderUtil::rename($this->oFolder, sanitize($sFolderName), $this->oUser); |
| 91 | if (PEAR::isError($res)) { | 91 | if (PEAR::isError($res)) { |
| 92 | $_SESSION['KTErrorMessage'][] = $res->getMessage(); | 92 | $_SESSION['KTErrorMessage'][] = $res->getMessage(); |
| 93 | redirect(KTBrowseUtil::getUrlForFolder($this->oFolder)); | 93 | redirect(KTBrowseUtil::getUrlForFolder($this->oFolder)); |