From ec8462410f0a8705f870ce0ee2009eb62da127b8 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 20 Dec 2008 20:11:51 +0000 Subject: Update view counts for albums also --- core/controllers/photos.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/controllers/photos.php') diff --git a/core/controllers/photos.php b/core/controllers/photos.php index 181004a4..465c291d 100644 --- a/core/controllers/photos.php +++ b/core/controllers/photos.php @@ -37,10 +37,11 @@ class Photos_Controller extends Items_Controller { $template->set_global('parents', $item->parents()); $template->content = new View("photo.html"); - print $template; $item->view_count++; $item->save(); + + print $template; } /** -- cgit v1.2.3