From: Lukas Reschke Date: Mon, 6 May 2013 16:20:18 +0000 (-0700) Subject: Merge pull request #3245 from owncloud/use-$view X-Git-Tag: v5.0.6~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1dfb7575931f4e8ad1fbd9108b8fa4a222dac8cf;p=nextcloud-server.git Merge pull request #3245 from owncloud/use-$view Use the internal ownCloud view --- diff --git a/apps/files_trashbin/index.php b/apps/files_trashbin/index.php index 8a5875b9ce6..a32b7414ac6 100644 --- a/apps/files_trashbin/index.php +++ b/apps/files_trashbin/index.php @@ -21,8 +21,7 @@ $dir = isset($_GET['dir']) ? stripslashes($_GET['dir']) : ''; $result = array(); if ($dir) { $dirlisting = true; - $fullpath = \OCP\Config::getSystemValue('datadirectory').$view->getAbsolutePath($dir); - $dirContent = opendir($fullpath); + $dirContent = $view->opendir($dir); $i = 0; while($entryName = readdir($dirContent)) { if ( $entryName != '.' && $entryName != '..' ) {