]> source.dussan.org Git - nextcloud-server.git/commitdiff
use cached size for getting the size of a moved file
authorRobin Appelman <icewind@owncloud.com>
Wed, 15 Feb 2012 13:42:37 +0000 (14:42 +0100)
committerRobin Appelman <icewind@owncloud.com>
Wed, 15 Feb 2012 13:43:06 +0000 (14:43 +0100)
lib/filecache.php

index 921d4a27902aef3250f775e65e6e12737f07e5c6..6ae2f8253dbaa3a31851eafd6fe8d9c813e70408 100644 (file)
@@ -380,8 +380,7 @@ class OC_FileCache{
                $fullOldPath=$root.$oldPath;
                $fullNewPath=$root.$newPath;
                if(($id=self::getFileId($fullOldPath))!=-1){
-                       $oldInfo=self::get($fullOldPath);
-                       $oldSize=$oldInfo['size'];
+                       $oldSize=self::getCachedSize($oldPath,$root);
                }else{
                        return;
                }