diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-20 20:04:57 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-20 20:04:57 +0000 |
commit | 50b0613243d7a841306d3674fc258c9e6952f350 (patch) | |
tree | 3ffd4ae530ff6f6335bf07d06ce8b7a5a3a7ff57 /core/controllers | |
parent | 406830cbf8e99919d0d1845e0440c2063cceb301 (diff) |
Add view counts and show them properly.
Diffstat (limited to 'core/controllers')
-rw-r--r-- | core/controllers/photos.php | 4 |
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(); } /** |