[Pkg-owncloud-commits] [owncloud] 187/394: make sure that all expected array keys are available
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:12:00 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.
commit bb8a274848ee7a0392ab4036322255e529b18ed1
Author: Björn Schießle <schiessle at owncloud.com>
Date: Tue Dec 4 14:52:59 2012 +0100
make sure that all expected array keys are available
---
apps/files_sharing/public.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index 923a8d8..362dc2d 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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list