aboutsummaryrefslogtreecommitdiff
path: root/pages/photos
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 /pages/photos
parentf057f68c6f946244b3afe0340ae11efdde0d8136 (diff)
downloadelgg-183e2841c50b9bdd7683680580f2b13eacbfbeca.tar.gz
elgg-183e2841c50b9bdd7683680580f2b13eacbfbeca.tar.bz2
basic view counting
Diffstat (limited to 'pages/photos')
-rw-r--r--pages/photos/image/view.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/pages/photos/image/view.php b/pages/photos/image/view.php
index f172b7cd6..22ccfb34d 100644
--- a/pages/photos/image/view.php
+++ b/pages/photos/image/view.php
@@ -11,6 +11,11 @@ group_gatekeeper();
// get the photo entity
$photo_guid = (int) get_input('guid');
$photo = get_entity($photo_guid);
+if (!$photo) {
+
+}
+
+$photo->addView();
// set page owner based on owner of photo album
$album = $photo->getContainerEntity();