]> source.dussan.org Git - nextcloud-server.git/commitdiff
Merge pull request #3245 from owncloud/use-$view
authorLukas Reschke <lukas@statuscode.ch>
Mon, 6 May 2013 16:20:18 +0000 (09:20 -0700)
committerLukas Reschke <lukas@statuscode.ch>
Mon, 6 May 2013 16:23:58 +0000 (18:23 +0200)
Use the internal ownCloud view

apps/files_trashbin/index.php

index 8a5875b9ce605214fcf65c2d34c27d52dcf5d779..a32b7414ac6a1b5a9a14c56d9753853ce38fb270 100644 (file)
@@ -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 != '..' ) {