diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/controllers/photos.php | 4 | ||||
-rw-r--r-- | core/helpers/core_installer.php | 1 |
2 files changed, 4 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(); } /** diff --git a/core/helpers/core_installer.php b/core/helpers/core_installer.php index 9dffeb8d..4ab54da9 100644 --- a/core/helpers/core_installer.php +++ b/core/helpers/core_installer.php @@ -60,6 +60,7 @@ class core_installer { `thumb_width` int(9) default NULL, `title` char(255) default NULL, `type` char(32) NOT NULL, + `view_count` int(9) default 0, `width` int(9) default NULL, PRIMARY KEY (`id`), KEY `parent_id` (`parent_id`), |