]> source.dussan.org Git - nextcloud-server.git/commitdiff
the old path no longer exists after rename, update the parent folder instead
authorBjörn Schießle <schiessle@owncloud.com>
Fri, 22 Mar 2013 15:20:40 +0000 (16:20 +0100)
committerBjörn Schießle <schiessle@owncloud.com>
Mon, 25 Mar 2013 13:21:06 +0000 (14:21 +0100)
apps/files_sharing/lib/updater.php

index 503aef6848333b4fd7a6069dc05c73f38c94f92f..a43ab2e2a0a5e07ad5188b96b3e481e99c60d69e 100644 (file)
@@ -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));
        }
 
        /**