aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire/views
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-27 14:27:30 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-27 14:27:30 +0000
commit8b3b7c3babc25966286b2532803c0ac0a5106375 (patch)
tree38521ba370b470233ea62f3d4b874259f5d94145 /mod/thewire/views
parentb8774c56edb22840530c6f2ddcbe2f2022a417d1 (diff)
downloadelgg-8b3b7c3babc25966286b2532803c0ac0a5106375.tar.gz
elgg-8b3b7c3babc25966286b2532803c0ac0a5106375.tar.bz2
set a default num of wire posts to appear on a widget
git-svn-id: https://code.elgg.org/elgg/trunk@2981 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/thewire/views')
-rw-r--r--mod/thewire/views/default/widgets/thewire/view.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/thewire/views/default/widgets/thewire/view.php b/mod/thewire/views/default/widgets/thewire/view.php
index 3d08590ea..739fd7617 100644
--- a/mod/thewire/views/default/widgets/thewire/view.php
+++ b/mod/thewire/views/default/widgets/thewire/view.php
@@ -9,7 +9,11 @@
set_page_owner($page_owner->getGUID());
}
- $thewire = $page_owner->getObjects('thewire', $vars['entity']->num_display);
+ $num = $vars['entity']->num_display;
+ if(!$num)
+ $num = 4;
+
+ $thewire = $page_owner->getObjects('thewire', $num);
// If there are any thewire to view, view them
if (is_array($thewire) && sizeof($thewire) > 0) {