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 /pages/photos/image | |
parent | f057f68c6f946244b3afe0340ae11efdde0d8136 (diff) | |
download | elgg-183e2841c50b9bdd7683680580f2b13eacbfbeca.tar.gz elgg-183e2841c50b9bdd7683680580f2b13eacbfbeca.tar.bz2 |
basic view counting
Diffstat (limited to 'pages/photos/image')
-rw-r--r-- | pages/photos/image/view.php | 5 |
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(); |