]> source.dussan.org Git - nextcloud-server.git/commitdiff
update path to deleted files
authorBjörn Schießle <schiessle@owncloud.com>
Wed, 20 Feb 2013 21:19:23 +0000 (22:19 +0100)
committerBjörn Schießle <schiessle@owncloud.com>
Wed, 20 Feb 2013 21:19:23 +0000 (22:19 +0100)
apps/files_trashbin/index.php

index a2d4cc0a44df9cb2a221750af922b2da3ae64ec8..8f8d143b4d11ccc7491f41993c3955725804d8c6 100644 (file)
@@ -9,7 +9,7 @@ OCP\Util::addScript('files', 'fileactions');
 $tmpl = new OCP\Template('files_trashbin', 'index', 'user');
 
 $user = \OCP\User::getUser();
-$view = new OC_Filesystemview('/'.$user.'/files_trashbin');
+$view = new OC_Filesystemview('/'.$user.'/files_trashbin/files');
 
 OCP\Util::addStyle('files', 'files');
 OCP\Util::addScript('files', 'filelist');
@@ -17,8 +17,7 @@ OCP\Util::addScript('files', 'filelist');
 $dir = isset($_GET['dir']) ? stripslashes($_GET['dir']) : '';
 
 if ($dir) {
-       $dirlisting = true;
-       $view = new \OC_FilesystemView('/'.\OCP\User::getUser().'/files_trashbin');\r
+       $dirlisting = true;\r
        $fullpath = \OCP\Config::getSystemValue('datadirectory').$view->getAbsolutePath($dir);
        $dirContent = opendir($fullpath);
        $i = 0;