Merge pull request #3245 from owncloud/use-$view
Use the internal ownCloud view
This commit is contained in:
commit
2208313e02
1 changed files with 1 additions and 2 deletions
|
@ -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 != '..' ) {
|
||||
|
|
Loading…
Reference in a new issue