fix use of old egw_vfs class instead of new Api\Vfs

This commit is contained in:
Ralf Becker 2017-01-19 15:30:12 +01:00
parent 55edf5cfea
commit 7cc280ac5f

View File

@ -340,7 +340,7 @@ class resources_bo
unset($resource['own_file']);
break;
}
elseif(@egw_vfs::stat('/apps/resources/'.$resource['res_id'].'/'.self::PICTURE_NAME))
elseif(@Vfs::stat('/apps/resources/'.$resource['res_id'].'/'.self::PICTURE_NAME))
{
break;
}
@ -368,10 +368,10 @@ class resources_bo
}
// Check for restore of deleted, restore held links
if($old && $old['deleted'] && !$resource['deleted'])
{
Link::restore('resources', $resource['res_id']);
}
if($old && $old['deleted'] && !$resource['deleted'])
{
Link::restore('resources', $resource['res_id']);
}
// delete old pictures
if($resource['picture_src'] != 'own_src')