diff options
-rw-r--r-- | apps/files/lib/Controller/ViewController.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index 1568e0c9f54..158b454c792 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -204,17 +204,17 @@ class ViewController extends Controller { $navBarPositionPosition = 6; $currentCount = 0; - foreach ($favElements['folders'] as $dir) { - $link = $this->urlGenerator->linkToRoute('files.view.index', ['dir' => $dir, 'view' => 'files']); + foreach ($favElements['folders'] as $favElement) { + $link = $this->urlGenerator->linkToRoute('files.view.index', ['dir' => $favElement, 'view' => 'files']); $sortingValue = ++$currentCount; $element = [ - 'id' => str_replace('/', '-', $dir), + 'id' => str_replace('/', '-', $favElement), 'view' => 'files', 'href' => $link, - 'dir' => $dir, + 'dir' => $favElement, 'order' => $navBarPositionPosition, 'folderPosition' => $sortingValue, - 'name' => basename($dir), + 'name' => basename($favElement), 'icon' => 'files', 'quickaccesselement' => 'true' ]; |