From 183e2841c50b9bdd7683680580f2b13eacbfbeca Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 3 Dec 2011 17:26:27 -0500 Subject: basic view counting --- pages/photos/image/view.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pages/photos/image/view.php') 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(); -- cgit v1.2.3