diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-20 20:11:51 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-20 20:11:51 +0000 |
commit | ec8462410f0a8705f870ce0ee2009eb62da127b8 (patch) | |
tree | 05e3aa502a4cf12f6c9b5d326d7d2664e5d4642b | |
parent | 50b0613243d7a841306d3674fc258c9e6952f350 (diff) |
Update view counts for albums also
-rw-r--r-- | core/controllers/albums.php | 3 | ||||
-rw-r--r-- | core/controllers/photos.php | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/core/controllers/albums.php b/core/controllers/albums.php index e84968c3..0947e913 100644 --- a/core/controllers/albums.php +++ b/core/controllers/albums.php @@ -46,6 +46,9 @@ class Albums_Controller extends Items_Controller { $template->set_global("parents", $item->parents()); $template->content = new View("album.html"); + $item->view_count++; + $item->save(); + print $template; } 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; } /** |