aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/start.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-11-04 23:29:54 -0400
committercash <cash.costello@gmail.com>2011-11-04 23:29:54 -0400
commit0759c227bf7b73254cf6eb5e8502463875f2469f (patch)
tree556d4d4b1ed2f2032694fa1f1ac28e41f19663f8 /mod/blog/start.php
parent54773892f88f53231b85d08d86d11557121d9609 (diff)
downloadelgg-0759c227bf7b73254cf6eb5e8502463875f2469f.tar.gz
elgg-0759c227bf7b73254cf6eb5e8502463875f2469f.tar.bz2
Fixes #4059 returning true when handling a page
Diffstat (limited to 'mod/blog/start.php')
-rw-r--r--mod/blog/start.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/mod/blog/start.php b/mod/blog/start.php
index b2da00bc7..052c63651 100644
--- a/mod/blog/start.php
+++ b/mod/blog/start.php
@@ -93,7 +93,7 @@ function blog_init() {
* @todo no archives for all blogs or friends
*
* @param array $page
- * @return void
+ * @return bool
*/
function blog_page_handler($page) {
@@ -141,15 +141,16 @@ function blog_page_handler($page) {
case 'all':
$params = blog_get_page_content_list();
break;
+ default:
+ return false;
}
- if (isset($params)) {
- $params['sidebar'] .= elgg_view('blog/sidebar', array('page' => $page_type));
+ $params['sidebar'] .= elgg_view('blog/sidebar', array('page' => $page_type));
- $body = elgg_view_layout('content', $params);
+ $body = elgg_view_layout('content', $params);
- echo elgg_view_page($params['title'], $body);
- }
+ echo elgg_view_page($params['title'], $body);
+ return true;
}
/**