summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2021-07-26 15:47:37 +0200
committerLouis Chemineau <louis@chmn.me>2021-07-26 15:47:37 +0200
commit2cbc3e92452169444b2c2dc3659d6ca7542b32d3 (patch)
treee905f385736d648076eb6866e17edd36415150f9 /apps/files/lib
parentb31c08e536edd4a2ae6d07bf79c58fa7486b2e9b (diff)
downloadnextcloud-server-2cbc3e92452169444b2c2dc3659d6ca7542b32d3.tar.gz
nextcloud-server-2cbc3e92452169444b2c2dc3659d6ca7542b32d3.zip
Fix variabable override in file view
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/Controller/ViewController.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php
index 80e3b06616c..d834900c501 100644
--- a/apps/files/lib/Controller/ViewController.php
+++ b/apps/files/lib/Controller/ViewController.php
@@ -221,17 +221,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'
];