aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 404c818a9..bde7d9499 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -517,6 +517,9 @@
} else {
$selected = false;
}
+
+ $submenu .= "<!-- {$item->value} {$_SERVER['REQUEST_URI']} -->";
+
$submenu .= elgg_view('canvas_header/submenu_template',
array(
'href' => $item->value,
@@ -564,6 +567,10 @@
* @return int Number of comments
*/
function elgg_count_comments($entity) {
+
+ if ($commentno = trigger_plugin_hook('comments:count',$entity->getType(),array('entity' => $entity),false)) {
+ return $commentno;
+ } else
return count_annotations($entity->getGUID(), "", "", "generic_comment");
}