aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Controller/ViewController.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/lib/Controller/ViewController.php')
-rw-r--r--apps/files/lib/Controller/ViewController.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php
index ea589807767..0594b63f56b 100644
--- a/apps/files/lib/Controller/ViewController.php
+++ b/apps/files/lib/Controller/ViewController.php
@@ -211,19 +211,17 @@ class ViewController extends Controller {
$favoritesSublistArray = [];
$navBarPositionPosition = 6;
- $currentCount = 0;
foreach ($favElements['folders'] as $favElement) {
- $link = $this->urlGenerator->linkToRoute('files.view.index', ['dir' => $favElement, 'view' => 'files']);
- $sortingValue = ++$currentCount;
$element = [
'id' => str_replace('/', '-', $favElement),
- 'view' => 'files',
- 'href' => $link,
'dir' => $favElement,
'order' => $navBarPositionPosition,
- 'folderPosition' => $sortingValue,
'name' => basename($favElement),
'icon' => 'folder',
+ 'params' => [
+ 'view' => 'files',
+ 'dir' => $favElement,
+ ],
];
array_push($favoritesSublistArray, $element);