diff options
author | Björn Schießle <schiessle@owncloud.com> | 2012-12-04 14:52:59 +0100 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2012-12-06 15:57:53 +0100 |
commit | bf0f39f5b4d1b4cc3e91015b4fcaa0231ff0e2a2 (patch) | |
tree | 3809bec5f27c740a1f6231220f5bc10963394105 /apps/files_sharing | |
parent | 69a9fe75a0643bad65189de36163fef2bf75bab4 (diff) | |
download | nextcloud-server-bf0f39f5b4d1b4cc3e91015b4fcaa0231ff0e2a2.tar.gz nextcloud-server-bf0f39f5b4d1b4cc3e91015b4fcaa0231ff0e2a2.zip |
make sure that all expected array keys are available
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/public.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index ac247368738..71c18380a3b 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -233,7 +233,7 @@ if ($linkItem) { $breadcrumb[] = array('dir' => '/', 'name' => basename($basePath)); //add subdir breadcrumbs - foreach (explode('/', urldecode($_GET['path'])) as $i) { + foreach (explode('/', urldecode($getPath)) as $i) { if ($i != '') { $pathtohere .= '/'.$i; $breadcrumb[] = array('dir' => $pathtohere, 'name' => $i); @@ -251,6 +251,7 @@ if ($linkItem) { $folder = new OCP\Template('files', 'index', ''); $folder->assign('fileList', $list->fetchPage(), false); $folder->assign('breadcrumb', $breadcrumbNav->fetchPage(), false); + $folder->assign('dir', basename($dir)); $folder->assign('isCreatable', false); $folder->assign('permissions', 0); $folder->assign('files', $files); |