aboutsummaryrefslogtreecommitdiff
path: root/mod/riverdashboard/views/default
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-16 15:46:54 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-16 15:46:54 +0000
commit4b7edf24875b66b576e595f0eab9e8d87688f2a3 (patch)
tree8e160a10b7b20b223de8a27f323de0fdd6030b45 /mod/riverdashboard/views/default
parent29493e33f56d584509ba6bbc73e259c20af0f118 (diff)
downloadelgg-4b7edf24875b66b576e595f0eab9e8d87688f2a3.tar.gz
elgg-4b7edf24875b66b576e595f0eab9e8d87688f2a3.tar.bz2
Fixed activity stream ecml view.
git-svn-id: http://code.elgg.org/elgg/trunk@5777 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/riverdashboard/views/default')
-rw-r--r--mod/riverdashboard/views/default/riverdashboard/ecml/activity.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/mod/riverdashboard/views/default/riverdashboard/ecml/activity.php b/mod/riverdashboard/views/default/riverdashboard/ecml/activity.php
index 87c048ea5..93b7e168f 100644
--- a/mod/riverdashboard/views/default/riverdashboard/ecml/activity.php
+++ b/mod/riverdashboard/views/default/riverdashboard/ecml/activity.php
@@ -9,19 +9,20 @@
* @link http://elgg.org/
*/
-$user = (isset($vars['user'])) ? $vars['user'] : NULL;
+// $vars['user'] is apparently the loggedin user.
+$owner = (isset($vars['owner'])) ? $vars['owner'] : NULL;
$type = (isset($vars['type'])) ? $vars['type'] : NULL;
$subtype = (isset($vars['subtype'])) ? $vars['subtype'] : NULL;
$limit = (isset($vars['limit'])) ? $vars['limit'] : 10;
// resolve usernames to guids
-if (!is_numeric($user)) {
- if ($user_obj = get_user_by_username($user)) {
- $user = $user_obj->getGUID();
+if ($owner && !is_numeric($owner)) {
+ if ($user_obj = get_user_by_username($owner)) {
+ $owner = $user_obj->getGUID();
}
}
-$river = elgg_view_river_items($user, NULL, NULL, $type, $subtype, '', $limit, 0, 0, true, false) . "</div>";
+$river = elgg_view_river_items($owner, NULL, NULL, $type, $subtype, '', $limit, 0, 0, true, false) . "</div>";
// Replacing callback calls in the nav with something meaningless
$river = str_replace('callback=true','replaced=88,334',$river);