diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-01-11 14:24:00 +0100 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-01-11 14:24:00 +0100 |
commit | 99a0ea44ee04482a014b6359075ee484f3483bd1 (patch) | |
tree | e62cfd78f0db8bf9161ba84ad59ca4255a71408b /apps | |
parent | 67d00bc6bbcb2cbd39753c279f8449f593fa2f06 (diff) | |
download | nextcloud-server-99a0ea44ee04482a014b6359075ee484f3483bd1.tar.gz nextcloud-server-99a0ea44ee04482a014b6359075ee484f3483bd1.zip |
function description fixed
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_versions/lib/versions.php | 7 |
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']);
}
}
|