From 1596c9f3da148143a12474596408d788f7c3ba4a Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 28 Apr 2009 21:26:12 +0000 Subject: Change _adjust_thumb_size to adjust_thumb_size and make public so we can access if from organize --- core/models/item.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/models') diff --git a/core/models/item.php b/core/models/item.php index 07a6dd17..9292983d 100644 --- a/core/models/item.php +++ b/core/models/item.php @@ -336,7 +336,7 @@ class Item_Model extends ORM_MPTT { * @return string */ public function thumb_tag($extra_attrs=array(), $max=null, $micro_thumb=false) { - list ($height, $width) = $this->_adjust_thumb_size($max); + list ($height, $width) = $this->adjust_thumb_size($max); if ($micro_thumb && $max) { // The constant is divide by 2 to calculate the file and 10 to convert to em $margin_top = ($max - $height) / 20; @@ -359,7 +359,7 @@ class Item_Model extends ORM_MPTT { * @param int $max Maximum size of the thumbnail * @return array */ - private function _adjust_thumb_size($max) { + public function adjust_thumb_size($max) { $width = $this->thumb_width; $height = $this->thumb_height; -- cgit v1.2.3