diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/controllers/albums.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/controllers/albums.php b/core/controllers/albums.php index adf59c02..b580bcca 100644 --- a/core/controllers/albums.php +++ b/core/controllers/albums.php @@ -63,6 +63,7 @@ class Albums_Controller extends Items_Controller { $template->set_global("children", $album->viewable()->children($page_size, $offset)); $template->set_global("children_count", $children_count); $template->set_global("parents", $album->parents()); + $template->set_global("thumb_proportion", $this->thumb_proportion()); $template->content = new View("album.html"); $album->view_count++; @@ -209,4 +210,13 @@ class Albums_Controller extends Items_Controller { print album::get_edit_form($album); } + + /** + * Proportion of the current thumb_size's to default + * @return int + */ + public function thumb_proportion() { + return module::get_var("core", "thumb_size", 150) / 150; + } + } |