diff options
author | cash <cash.costello@gmail.com> | 2011-12-03 17:26:27 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-12-03 17:26:27 -0500 |
commit | 183e2841c50b9bdd7683680580f2b13eacbfbeca (patch) | |
tree | 97573f8f572af73fbfdb053bb14785f758177cae /start.php | |
parent | f057f68c6f946244b3afe0340ae11efdde0d8136 (diff) | |
download | elgg-183e2841c50b9bdd7683680580f2b13eacbfbeca.tar.gz elgg-183e2841c50b9bdd7683680580f2b13eacbfbeca.tar.bz2 |
basic view counting
Diffstat (limited to 'start.php')
-rw-r--r-- | start.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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>", |