summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-03-22 16:20:40 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-03-25 14:21:06 +0100
commitc2a49b5c1f7c06497da9285b82775914b0445ddb (patch)
treece09d9cc48ae38db6ef0e98cc539ae26150094ed
parent8b3dd8784696445c8554de2d07f1ddcbcd86b8d6 (diff)
downloadnextcloud-server-c2a49b5c1f7c06497da9285b82775914b0445ddb.tar.gz
nextcloud-server-c2a49b5c1f7c06497da9285b82775914b0445ddb.zip
the old path no longer exists after rename, update the parent folder instead
-rw-r--r--apps/files_sharing/lib/updater.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/updater.php b/apps/files_sharing/lib/updater.php
index 503aef68483..a43ab2e2a0a 100644
--- a/apps/files_sharing/lib/updater.php
+++ b/apps/files_sharing/lib/updater.php
@@ -68,8 +68,8 @@ class Shared_Updater {
* @param array $params
*/
static public function renameHook($params) {
- self::correctFolders($params['oldpath']);
self::correctFolders($params['newpath']);
+ self::correctFolders(pathinfo($params['oldpath'], PATHINFO_DIRNAME));
}
/**