diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2023-01-04 11:47:36 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2023-01-04 16:46:16 +0100 |
commit | 7339355dde6e946bbc151397ea91ba5bf19047f6 (patch) | |
tree | 742e97042d74d7f28b08979e2df839516d46fd39 /apps/files/lib/Controller/ViewController.php | |
parent | e2da30a0c5315273936232e3ad28ca0c8653ed33 (diff) | |
download | nextcloud-server-7339355dde6e946bbc151397ea91ba5bf19047f6.tar.gz nextcloud-server-7339355dde6e946bbc151397ea91ba5bf19047f6.zip |
Fix favourite opening
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/lib/Controller/ViewController.php')
-rw-r--r-- | apps/files/lib/Controller/ViewController.php | 10 |
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); |