diff options
author | Sem <sembrestels@riseup.net> | 2012-07-13 09:53:15 +0200 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2012-07-13 09:53:15 +0200 |
commit | d6953c9955b2b9e3c245936e448e7be41058bb9b (patch) | |
tree | b267208dccab5abfc2de369b4114525b2a25b5fb /mod | |
parent | 7fd67bc8ac6882f1a73aa7f8f907cd6c2a694272 (diff) | |
download | elgg-d6953c9955b2b9e3c245936e448e7be41058bb9b.tar.gz elgg-d6953c9955b2b9e3c245936e448e7be41058bb9b.tar.bz2 |
Fixes #4687. Handle URLs on plugins that include only handler name.
Diffstat (limited to 'mod')
-rw-r--r-- | mod/bookmarks/start.php | 5 | ||||
-rw-r--r-- | mod/groups/start.php | 8 | ||||
-rw-r--r-- | mod/profile/start.php | 2 |
3 files changed, 15 insertions, 0 deletions
diff --git a/mod/bookmarks/start.php b/mod/bookmarks/start.php index 56bac984a..66e22b565 100644 --- a/mod/bookmarks/start.php +++ b/mod/bookmarks/start.php @@ -86,8 +86,13 @@ function bookmarks_init() { * @return bool */ function bookmarks_page_handler($page) { + elgg_load_library('elgg:bookmarks'); + if (!isset($page[0])) { + $page[0] = 'all'; + } + elgg_push_breadcrumb(elgg_echo('bookmarks'), 'bookmarks/all'); // old group usernames diff --git a/mod/groups/start.php b/mod/groups/start.php index 48df338c0..c591410c5 100644 --- a/mod/groups/start.php +++ b/mod/groups/start.php @@ -196,6 +196,10 @@ function groups_page_handler($page) { elgg_load_library('elgg:groups'); + if (!isset($page[0])) { + $page[0] = 'all'; + } + elgg_push_breadcrumb(elgg_echo('groups'), "groups/all"); switch ($page[0]) { @@ -785,6 +789,10 @@ function discussion_page_handler($page) { elgg_load_library('elgg:discussion'); + if (!isset($page[0])) { + $page[0] = 'all'; + } + elgg_push_breadcrumb(elgg_echo('discussion'), 'discussion/all'); switch ($page[0]) { diff --git a/mod/profile/start.php b/mod/profile/start.php index abe044632..ab596f235 100644 --- a/mod/profile/start.php +++ b/mod/profile/start.php @@ -56,6 +56,8 @@ function profile_page_handler($page) { $username = $page[0]; $user = get_user_by_username($username); elgg_set_page_owner_guid($user->guid); + } elseif (elgg_is_logged_in()) { + forward(elgg_get_logged_in_user_entity()->getURL()); } // short circuit if invalid or banned username |