]> source.dussan.org Git - nextcloud-server.git/commitdiff
function description fixed
authorBjörn Schießle <schiessle@owncloud.com>
Fri, 11 Jan 2013 13:24:00 +0000 (14:24 +0100)
committerBjörn Schießle <schiessle@owncloud.com>
Fri, 11 Jan 2013 13:24:00 +0000 (14:24 +0100)
apps/files_versions/lib/versions.php

index 23aa1319ff0b27a2496ac01e4d4e33d21ded8779..fdbeb1b0b3ee25f5ac71dfb625d3621d46130357 100644 (file)
@@ -120,11 +120,9 @@ class Storage {
        }
        
        /**\r
-        * Delete versions of a file\r
+        * rename versions of a file\r
         */\r
-       public static function rename($oldpath, $newpath) {
-               error_log("oldpath: $oldpath");
-               error_log("newpath: $newpath");\r
+       public static function rename($oldpath, $newpath) {\r
                list($uid, $oldpath) = self::getUidAndFilename($oldpath);
                list($uidn, $newpath) = self::getUidAndFilename($newpath);\r
                $versions_view = new \OC_FilesystemView('/'.$uid .'/files_versions');
@@ -137,7 +135,6 @@ class Storage {
                        if(!file_exists($info['dirname'])) mkdir($info['dirname'], 0750, true);\r
                        $versions = Storage::getVersions($oldpath);\r
                        foreach ($versions as $v) {
-                               error_log("rename(".$oldpath.'.v'.$v['version'].", ". $newpath.'.v'.$v['version'].")");
                                $versions_view->rename($oldpath.'.v'.$v['version'], $newpath.'.v'.$v['version']);\r
                        }\r
                }\r