aboutsummaryrefslogtreecommitdiff
path: root/views/default/page
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-22 00:17:32 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-22 00:17:32 +0000
commitc349de1a1ce19c2fdfab3f6f2e97dca9d03e36ea (patch)
tree8b8ffdebd0a358e58ac65cb580bb8b841d60bf19 /views/default/page
parent58655326f516c136473568c21d2a3f37bcb060d6 (diff)
downloadelgg-c349de1a1ce19c2fdfab3f6f2e97dca9d03e36ea.tar.gz
elgg-c349de1a1ce19c2fdfab3f6f2e97dca9d03e36ea.tar.bz2
Refs #2090 added sidebar comment block to file and pages plugins
git-svn-id: http://code.elgg.org/elgg/trunk@8810 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page')
-rw-r--r--views/default/page/elements/comments_block.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/default/page/elements/comments_block.php b/views/default/page/elements/comments_block.php
index 89e43b266..5571dc707 100644
--- a/views/default/page/elements/comments_block.php
+++ b/views/default/page/elements/comments_block.php
@@ -9,9 +9,14 @@
* @uses $vars['limit'] The number of comments to display
*/
+$owner_guid = elgg_extract('owner_guid', $vars, ELGG_ENTITIES_ANY_VALUE);
+if (!$owner_guid) {
+ $owner_guid = ELGG_ENTITIES_ANY_VALUE;
+}
+
$options = array(
'annotation_name' => 'generic_comment',
- 'owner_guid' => elgg_extract('owner_guid', $vars, ELGG_ENTITIES_ANY_VALUE),
+ 'owner_guid' => $owner_guid,
'reverse_order_by' => true,
'limit' => elgg_extract('limit', $vars, 4),
'type' => 'object',