diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-01-15 13:36:14 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-01-15 13:36:14 +0100 |
commit | d279ddd9a25286bed6817413cc69987d57695e3b (patch) | |
tree | bd357849fd1ea57a1c3f91333cbf61443b382ca6 /apps/files_sharing/public.php | |
parent | d1f3f121d6992be07c3600882449ce17d56f116f (diff) | |
download | nextcloud-server-d279ddd9a25286bed6817413cc69987d57695e3b.tar.gz nextcloud-server-d279ddd9a25286bed6817413cc69987d57695e3b.zip |
Show the name of the shared folder in the breadcrumb when viewing a publicly shared folder
Diffstat (limited to 'apps/files_sharing/public.php')
-rw-r--r-- | apps/files_sharing/public.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index f4042f65248..ef4345da20e 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -111,6 +111,7 @@ if (isset($path)) { } } $basePath = $path; + $rootName = basename($path); if (isset($_GET['path']) && \OC\Files\Filesystem::isReadable($basePath . $_GET['path'])) { $getPath = \OC\Files\Filesystem::normalizePath($_GET['path']); $path .= $getPath; @@ -216,6 +217,7 @@ if (isset($path)) { $list->assign('sharingroot', $basePath); $breadcrumbNav = new OCP\Template('files', 'part.breadcrumb', ''); $breadcrumbNav->assign('breadcrumb', $breadcrumb); + $breadcrumbNav->assign('rootBreadCrumb', $rootName); $breadcrumbNav->assign('baseURL', OCP\Util::linkToPublic('files') . $urlLinkIdentifiers . '&path='); $maxUploadFilesize=OCP\Util::maxUploadFilesize($path); $fileHeader = (!isset($files) or count($files) > 0); |