Skip to content
Snippets Groups Projects
Commit 2208313e authored by Lukas Reschke's avatar Lukas Reschke
Browse files

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

Use the internal ownCloud view
parents d659d8e1 db1e6b5f
No related branches found
No related tags found
No related merge requests found
......@@ -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 != '..' ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment