diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-04-28 21:26:12 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-04-28 21:26:12 +0000 |
commit | 1596c9f3da148143a12474596408d788f7c3ba4a (patch) | |
tree | 584f150055d2dd43a1650ebb3fa1151b66900d20 /core | |
parent | 234aed87e604d6039af746ef8fcd0284582183e7 (diff) |
Change _adjust_thumb_size to adjust_thumb_size and make public so we
can access if from organize
Diffstat (limited to 'core')
-rw-r--r-- | core/models/item.php | 4 |
1 files changed, 2 insertions, 2 deletions
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; |