summaryrefslogtreecommitdiff
path: root/core/controllers/photos.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/controllers/photos.php')
-rw-r--r--core/controllers/photos.php4
1 files changed, 3 insertions, 1 deletions
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();
}
/**