diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-13 13:16:19 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-13 13:16:19 +0000 |
commit | ef5c47e15604ccd993ed50d466e25f5442c1017f (patch) | |
tree | 2b56f809aaf547ea9f3da9fa4ace33154bbe13dc /mod/riverdashboard/index.php | |
parent | 771c5e5909e69f614372f6bfb43300647e5aa5e1 (diff) | |
download | elgg-ef5c47e15604ccd993ed50d466e25f5442c1017f.tar.gz elgg-ef5c47e15604ccd993ed50d466e25f5442c1017f.tar.bz2 |
Added better content filtering for dashboard
git-svn-id: https://code.elgg.org/elgg/trunk@2738 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/riverdashboard/index.php')
-rw-r--r-- | mod/riverdashboard/index.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/mod/riverdashboard/index.php b/mod/riverdashboard/index.php index d4be29b85..9d3a98d81 100644 --- a/mod/riverdashboard/index.php +++ b/mod/riverdashboard/index.php @@ -14,10 +14,16 @@ gatekeeper();
- $subtype = get_input('content','');
+ $content = get_input('content','');
+ $content = explode(',',$content);
+ $type = $content[0];
+ $subtype = $content[1];
$orient = get_input('display');
- if ($subtype == 'all') $subtype = '';
+ if ($type == 'all') {
+ $type = '';
+ $subtype = '';
+ }
switch($orient) {
case 'mine':
@@ -32,8 +38,9 @@ break;
}
- $river = elgg_view_river_items($subject_guid, 0, $relationship_type, '', $subtype, '');
+ $river = elgg_view_river_items($subject_guid, 0, $relationship_type, $type, $subtype, '');
$body = elgg_view('riverdashboard/nav',array(
+ 'type' => $type,
'subtype' => $subtype,
'orient' => $orient
));
|