diff options
Diffstat (limited to 'apps/files/lib/Controller/ViewController.php')
-rw-r--r-- | apps/files/lib/Controller/ViewController.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index 0655718f8c1..d91d3b9db4c 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -176,7 +176,6 @@ class ViewController extends Controller { $currentCount = 0; foreach ($favElements['folders'] as $dir) { - $id = substr($dir, strrpos($dir, '/') + 1, strlen($dir)); $link = $this->urlGenerator->linkToRoute('files.view.index', ['dir' => $dir, 'view' => 'files']); $sortingValue = ++$currentCount; $element = [ @@ -186,7 +185,7 @@ class ViewController extends Controller { 'dir' => $dir, 'order' => $navBarPositionPosition, 'folderPosition' => $sortingValue, - 'name' => $id, + 'name' => basename($dir), 'icon' => 'files', 'quickaccesselement' => 'true' ]; |