diff options
author | Louis Chemineau <louis@chmn.me> | 2021-07-26 15:47:37 +0200 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2021-07-26 15:47:37 +0200 |
commit | 2cbc3e92452169444b2c2dc3659d6ca7542b32d3 (patch) | |
tree | e905f385736d648076eb6866e17edd36415150f9 /apps/files/lib | |
parent | b31c08e536edd4a2ae6d07bf79c58fa7486b2e9b (diff) | |
download | nextcloud-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.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 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' ]; |