Use $dir instead of $fullpath

This commit is contained in:
Lukas Reschke 2013-05-06 14:28:01 +03:00
parent b13b19c58b
commit db1e6b5f3b
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 = $view->opendir($fullpath);
$dirContent = $view->opendir($dir);
$i = 0;
while($entryName = readdir($dirContent)) {
if ( $entryName != '.' && $entryName != '..' ) {