* This function is connected to the delete signal of OC_Filesystem
* cleanup the versions directory if the actual file gets deleted\r
*/
- public static function removeVersions($params) {\r
- $rel_path = $params[\OC_Filesystem::signal_param_path];\r
- $abs_path = \OCP\Config::getSystemValue('datadirectory').'/'.\OC_User::getUser()."/versions".$rel_path.'.v';\r
+ public static function removeVersions($params) {
+ $rel_path = $params['path'];\r
+ $abs_path = \OCP\Config::getSystemValue('datadirectory').'/'.\OCP\User::getUser()."/versions".$rel_path.'.v';\r
if(Storage::isversioned($rel_path)) {\r
$versions = Storage::getVersions($rel_path);\r
foreach ($versions as $v){\r
*/\r
public static function renameVersions($params) {\r
$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';\r
+ $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';\r
if(Storage::isversioned($rel_oldpath)) {
$versions = Storage::getVersions($rel_oldpath);\r
foreach ($versions as $v){