aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-21 09:44:48 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-21 09:44:48 +0000
commitd8e044d4b6bcc240f974d457a4601f54b6eea526 (patch)
tree82b3377411ca21242a4815a900858bd346ed5158 /engine
parentb4f73b8a8bab3b2235d1f709f28cbbb0291c5075 (diff)
downloadelgg-d8e044d4b6bcc240f974d457a4601f54b6eea526.tar.gz
elgg-d8e044d4b6bcc240f974d457a4601f54b6eea526.tar.bz2
let site admins toggle between a classic activity stream or the new clustered version
git-svn-id: http://code.elgg.org/elgg/trunk@5826 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/river2.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/engine/lib/river2.php b/engine/lib/river2.php
index 3d826f517..8e015ea0d 100644
--- a/engine/lib/river2.php
+++ b/engine/lib/river2.php
@@ -383,10 +383,17 @@ function elgg_view_river_item($item) {
));
}
}
- return elgg_view('river/item/wrapper',array(
- 'item' => $item,
- 'body' => $body
- ));
+ if (get_plugin_setting('activitytype', 'riverdashboard') == 'classic'){
+ return elgg_view('river/item/wrapper_classic',array(
+ 'item' => $item,
+ 'body' => $body
+ ));
+ }else{
+ return elgg_view('river/item/wrapper',array(
+ 'item' => $item,
+ 'body' => $body
+ ));
+ }
}
return false;
}