From 99a0ea44ee04482a014b6359075ee484f3483bd1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Schie=C3=9Fle?= Date: Fri, 11 Jan 2013 14:24:00 +0100 Subject: [PATCH] function description fixed --- apps/files_versions/lib/versions.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php index 23aa1319ff0..fdbeb1b0b3e 100644 --- a/apps/files_versions/lib/versions.php +++ b/apps/files_versions/lib/versions.php @@ -120,11 +120,9 @@ class Storage { } /** - * Delete versions of a file + * rename versions of a file */ - public static function rename($oldpath, $newpath) { - error_log("oldpath: $oldpath"); - error_log("newpath: $newpath"); + public static function rename($oldpath, $newpath) { list($uid, $oldpath) = self::getUidAndFilename($oldpath); list($uidn, $newpath) = self::getUidAndFilename($newpath); $versions_view = new \OC_FilesystemView('/'.$uid .'/files_versions'); @@ -137,7 +135,6 @@ class Storage { if(!file_exists($info['dirname'])) mkdir($info['dirname'], 0750, true); $versions = Storage::getVersions($oldpath); 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']); } } -- 2.39.5