From: Björn Schießle Date: Fri, 22 Mar 2013 15:20:40 +0000 (+0100) Subject: the old path no longer exists after rename, update the parent folder instead X-Git-Tag: v6.0.0alpha2~1013 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c2a49b5c1f7c06497da9285b82775914b0445ddb;p=nextcloud-server.git the old path no longer exists after rename, update the parent folder instead --- 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)); } /**