summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-09-25 09:06:49 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-09-25 09:06:49 (GMT)
commitc7f258522e8536270c9747a67ff7ef0551af33d9 (patch)
tree683aaf901c66a7d7038fa7c50e0dfc06a060bfdd
parent406272e6bb6b4a085d207e8b4f4ee4a5cfcaa7ad (diff)
downloadkolab-chwala-c7f258522e8536270c9747a67ff7ef0551af33d9.tar.gz
Fix folder rename (#3654)
-rw-r--r--lib/file_api.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/file_api.php b/lib/file_api.php
index bb02006..a821ae6 100644
--- a/lib/file_api.php
+++ b/lib/file_api.php
@@ -474,7 +474,7 @@ class file_api
}
return $this->api->folder_delete($args['folder']);
- case 'folder_rename':
+ case 'folder_move':
if (!isset($args['folder']) || $args['folder'] === '') {
throw new Exception("Missing source folder name", file_api::ERROR_CODE);
}
@@ -484,7 +484,7 @@ class file_api
if ($args['new'] === $args['folder']) {
return;
}
- return $this->api->folder_rename($args['folder'], $args['new']);
+ return $this->api->folder_move($args['folder'], $args['new']);
case 'folder_list':
return $this->api->folder_list();