Merge pull request #3245 from owncloud/use-$view

Use the internal ownCloud view
This commit is contained in:
Lukas Reschke 2013-05-06 09:20:18 -07:00
commit 2208313e02
1 changed files with 1 additions and 2 deletions

View 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 != '..' ) {