aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
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>",