diff options
Diffstat (limited to 'pages/river.php')
| -rw-r--r-- | pages/river.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/pages/river.php b/pages/river.php index 7f2fce3d6..801d9f664 100644 --- a/pages/river.php +++ b/pages/river.php @@ -3,12 +3,11 @@ * Main activity stream list page */ -// $page_type comes from the page handler function - $options = array(); -$type = get_input('type', 'all'); -$subtype = get_input('subtype', ''); +$page_type = preg_replace('[\W]', '', get_input('page_type', 'all')); +$type = preg_replace('[\W]', '', get_input('type', 'all')); +$subtype = preg_replace('[\W]', '', get_input('subtype', '')); if ($subtype) { $selector = "type=$type&subtype=$subtype"; } else { @@ -41,15 +40,18 @@ switch ($page_type) { } $activity = elgg_list_river($options); +if (!$activity) { + $activity = elgg_echo('river:none'); +} $content = elgg_view('core/river/filter', array('selector' => $selector)); $sidebar = elgg_view('core/river/sidebar'); $params = array( + 'title' => $title, 'content' => $content . $activity, 'sidebar' => $sidebar, - 'buttons' => '', 'filter_context' => $page_filter, 'class' => 'elgg-river-layout', ); |
