summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_sharing/public.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index 04dcbd680e3..4b536097414 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -148,7 +148,7 @@ if (isset($path)) {
// Make breadcrumb
$breadcrumb = array();
$pathtohere = '';
- foreach (explode('/', $dir) as $i) {
+ foreach (explode('/', $getPath) as $i) {
if ($i != '') {
$pathtohere .= '/' . $i;
$breadcrumb[] = array('dir' => $pathtohere, 'name' => $i);