aboutsummaryrefslogtreecommitdiff
path: root/mod/river/views/default/widgets/river_widget/view.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/river/views/default/widgets/river_widget/view.php')
-rw-r--r--mod/river/views/default/widgets/river_widget/view.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/river/views/default/widgets/river_widget/view.php b/mod/river/views/default/widgets/river_widget/view.php
index 38507c625..27aeb7806 100644
--- a/mod/river/views/default/widgets/river_widget/view.php
+++ b/mod/river/views/default/widgets/river_widget/view.php
@@ -10,8 +10,12 @@
*/
$owner = page_owner_entity();
+ $limit = 8;
+
+ if ($vars['entity']->limit)
+ $limit = $vars['entity']->limit;
?>
<h1><?php echo sprintf(elgg_echo('river:widget:title'), $owner->name . "'s") ?></h1>
<?php
- echo elgg_view_river($owner->guid);
+ echo elgg_view_river($owner->guid, $limit);
?> \ No newline at end of file