aboutsummaryrefslogtreecommitdiff
path: root/mod/file/upload.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-31 15:47:41 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-31 15:47:41 +0000
commitcc8554abadc047469087fcd4f8f469ba733fceb0 (patch)
treea9837273d0142dfc649feb2b031158db4105a4f9 /mod/file/upload.php
parent24ef7261d523155ee1c58e8297516e726b4ce80b (diff)
downloadelgg-cc8554abadc047469087fcd4f8f469ba733fceb0.tar.gz
elgg-cc8554abadc047469087fcd4f8f469ba733fceb0.tar.bz2
file index page now working for both users and groups
git-svn-id: http://code.elgg.org/elgg/trunk@7790 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/file/upload.php')
-rw-r--r--mod/file/upload.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/file/upload.php b/mod/file/upload.php
index 0c89e64a5..ef0899f20 100644
--- a/mod/file/upload.php
+++ b/mod/file/upload.php
@@ -6,11 +6,17 @@
*/
elgg_set_page_owner_guid(get_input('guid'));
+$owner = elgg_get_page_owner();
gatekeeper();
group_gatekeeper();
elgg_push_breadcrumb(elgg_echo('file'), "pg/file/all/");
+if (elgg_instanceof($owner, 'user')) {
+ elgg_push_breadcrumb($owner->name, "pg/file/owner/$owner->username");
+} else {
+ elgg_push_breadcrumb($owner->name, "pg/file/group/$owner->guid/owner");
+}
elgg_push_breadcrumb(elgg_echo('file:new'));
$container_guid = elgg_get_page_owner_guid();