aboutsummaryrefslogtreecommitdiff
path: root/mod/riverdashboard/index.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-24 15:40:47 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-24 15:40:47 +0000
commit65c5ba06227db6c4847fbe17a1ac35a52ed40b02 (patch)
treed9bbfa236e8e9481eb464d70c316052c89a79044 /mod/riverdashboard/index.php
parentf56c4ae4c881345e0a11d1f24a2e6a06668fb0ca (diff)
downloadelgg-65c5ba06227db6c4847fbe17a1ac35a52ed40b02.tar.gz
elgg-65c5ba06227db6c4847fbe17a1ac35a52ed40b02.tar.bz2
The activity stream's count uses the river table instead of trying to combine entities + annotations based up on time_created.
Also brought small bits of code up to standards. git-svn-id: http://code.elgg.org/elgg/trunk@6173 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/riverdashboard/index.php')
-rw-r--r--mod/riverdashboard/index.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/riverdashboard/index.php b/mod/riverdashboard/index.php
index 4f13e323e..a5e61057b 100644
--- a/mod/riverdashboard/index.php
+++ b/mod/riverdashboard/index.php
@@ -41,13 +41,12 @@ switch($orient) {
break;
}
-
$title = elgg_view_title($title_wording);
$river = elgg_view_river_items($subject_guid, 0, $relationship_type, $type, $subtype, '', 20, 0, 0, true, false);
// Replacing callback calls in the nav with something meaningless
-$river = str_replace('callback=true','replaced=88,334',$river);
+$river = str_replace('callback=true', 'replaced=88,334', $river);
$nav = elgg_view('riverdashboard/nav',array('type' => $type,'subtype' => $subtype,'orient' => $orient));
if (isloggedin()) {
@@ -56,11 +55,13 @@ if (isloggedin()) {
} else {
$sidebar = '';
}
+
set_context('riverdashboard');
+
if (empty($callback)) {
$body .= elgg_view('riverdashboard/container', array('body' => $nav . $river . elgg_view('riverdashboard/js')));
page_draw($title_wording,elgg_view_layout('one_column_with_sidebar',$title . $body, $sidebar));
} else {
header("Content-type: text/html; charset=UTF-8");
echo $nav . $river . elgg_view('riverdashboard/js');
-} \ No newline at end of file
+}