Merge pull request #8603 from owncloud/trashbinfix

[regression] Fixed trashbin to use correct class
This commit is contained in:
Vincent Petry 2014-05-15 17:49:18 +02:00
commit b2e8aa70cd
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class Helper
$timestamp = null; $timestamp = null;
$user = \OCP\User::getUser(); $user = \OCP\User::getUser();
$view = new \OC_Filesystemview('/' . $user . '/files_trashbin/files'); $view = new \OC\Files\View('/' . $user . '/files_trashbin/files');
if (ltrim($dir, '/') !== '' && !$view->is_dir($dir)) { if (ltrim($dir, '/') !== '' && !$view->is_dir($dir)) {
throw new \Exception('Directory does not exists'); throw new \Exception('Directory does not exists');