aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-12-03 17:26:27 -0500
committercash <cash.costello@gmail.com>2011-12-03 17:26:27 -0500
commit183e2841c50b9bdd7683680580f2b13eacbfbeca (patch)
tree97573f8f572af73fbfdb053bb14785f758177cae /start.php
parentf057f68c6f946244b3afe0340ae11efdde0d8136 (diff)
downloadelgg-183e2841c50b9bdd7683680580f2b13eacbfbeca.tar.gz
elgg-183e2841c50b9bdd7683680580f2b13eacbfbeca.tar.bz2
basic view counting
Diffstat (limited to 'start.php')
-rw-r--r--start.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/start.php b/start.php
index f094bd2f4..4942f949a 100644
--- a/start.php
+++ b/start.php
@@ -285,7 +285,8 @@ function tidypics_entity_menu_setup($hook, $type, $return, $params) {
if (elgg_instanceof($entity, 'object', 'image')) {
if (elgg_get_plugin_setting('view_count', 'tidypics')) {
- $status_text = '27 views';
+ $view_info = $entity->getViewInfo();
+ $status_text = (int)$view_info['total'] . ' views';
$options = array(
'name' => 'published_status',
'text' => "<span>$status_text</span>",