From 3969145a366d7569a20df7be64bb0f35683ebe8f Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sat, 9 May 2009 22:22:30 +0000 Subject: Move the thumb_proportion method into Theme_View and set it by default if the page type is album. Leave a todo if we ever set up a theme default API --- core/controllers/albums.php | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'core/controllers') diff --git a/core/controllers/albums.php b/core/controllers/albums.php index 50a46c17..adf59c02 100644 --- a/core/controllers/albums.php +++ b/core/controllers/albums.php @@ -63,7 +63,6 @@ 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++; @@ -210,13 +209,4 @@ 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", 200) / 200; - } - } -- cgit v1.2.3