From 50b0613243d7a841306d3674fc258c9e6952f350 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 20 Dec 2008 20:04:57 +0000 Subject: Add view counts and show them properly. --- core/controllers/photos.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/controllers/photos.php') diff --git a/core/controllers/photos.php b/core/controllers/photos.php index 5159d66f..181004a4 100644 --- a/core/controllers/photos.php +++ b/core/controllers/photos.php @@ -37,8 +37,10 @@ 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(); } /** -- cgit v1.2.3