aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-01-11 14:24:00 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-01-11 14:24:00 +0100
commit99a0ea44ee04482a014b6359075ee484f3483bd1 (patch)
treee62cfd78f0db8bf9161ba84ad59ca4255a71408b /apps
parent67d00bc6bbcb2cbd39753c279f8449f593fa2f06 (diff)
downloadnextcloud-server-99a0ea44ee04482a014b6359075ee484f3483bd1.tar.gz
nextcloud-server-99a0ea44ee04482a014b6359075ee484f3483bd1.zip
function description fixed
Diffstat (limited to 'apps')
-rw-r--r--apps/files_versions/lib/versions.php7
1 files 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']);
}
}