summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-06-28 14:18:57 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-06-28 14:18:57 +0200
commitbdd1baeb858b4968a6b69b48960abe3b9f63bc92 (patch)
tree6d8d0abf2f82bcc97e99eb8b9034d5cbd9dedd47 /apps/files_versions
parente5792cc064c41c2a5bca32b886a8bc08cce2fb3f (diff)
downloadnextcloud-server-bdd1baeb858b4968a6b69b48960abe3b9f63bc92.tar.gz
nextcloud-server-bdd1baeb858b4968a6b69b48960abe3b9f63bc92.zip
use public API
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/versions.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files_versions/versions.php b/apps/files_versions/versions.php
index b733c57923e..7ed5f257505 100644
--- a/apps/files_versions/versions.php
+++ b/apps/files_versions/versions.php
@@ -316,9 +316,9 @@ class Storage {
* This function is connected to the delete signal of OC_Filesystem
* cleanup the versions directory if the actual file gets deleted
*/
- public static function removeVersions($params) {
- $rel_path = $params[\OC_Filesystem::signal_param_path];
- $abs_path = \OCP\Config::getSystemValue('datadirectory').'/'.\OC_User::getUser()."/versions".$rel_path.'.v';
+ public static function removeVersions($params) {
+ $rel_path = $params['path'];
+ $abs_path = \OCP\Config::getSystemValue('datadirectory').'/'.\OCP\User::getUser()."/versions".$rel_path.'.v';
if(Storage::isversioned($rel_path)) {
$versions = Storage::getVersions($rel_path);
foreach ($versions as $v){
@@ -336,8 +336,8 @@ class Storage {
*/
public static function renameVersions($params) {
$rel_oldpath = $params['oldpath'];
- $abs_oldpath = \OCP\Config::getSystemValue('datadirectory').'/'.\OC_User::getUser()."/versions".$rel_oldpath.'.v';
- $abs_newpath = \OCP\Config::getSystemValue('datadirectory').'/'.\OC_User::getUser()."/versions".$params['newpath'].'.v';
+ $abs_oldpath = \OCP\Config::getSystemValue('datadirectory').'/'.\OCP\User::getUser()."/versions".$rel_oldpath.'.v';
+ $abs_newpath = \OCP\Config::getSystemValue('datadirectory').'/'.\OCP\User::getUser()."/versions".$params['newpath'].'.v';
if(Storage::isversioned($rel_oldpath)) {
$versions = Storage::getVersions($rel_oldpath);
foreach ($versions as $v){