diff options
Diffstat (limited to 'mod/file/upload.php')
-rw-r--r-- | mod/file/upload.php | 6 |
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(); |