From fc7b78492bc671f6dd78e04f5d42de958cdfb1d7 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 17 Dec 2008 04:45:35 +0000 Subject: Separate thumbnails out into var/thumbs. This clears up some ambiguity in Item_Model and simplifies file_proxy. It also means we can stop munging file names in the var/resizes hierarchy. In the process, rename "thumbnail" to "thumb" everywhere in honor of Chad (well, ok because it's shorter).. --- core/helpers/photo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/helpers/photo.php') diff --git a/core/helpers/photo.php b/core/helpers/photo.php index da4ab0ac..00aff447 100644 --- a/core/helpers/photo.php +++ b/core/helpers/photo.php @@ -78,10 +78,10 @@ class photo_Core { copy($filename, $photo->file_path()); // This saves the photo a second time, which is unfortunate but difficult to avoid. - $thumbnail_size = module::get_var("core", "thumbnail_size"); + $thumb_size = module::get_var("core", "thumb_size"); $resize_size = module::get_var("core", "resize_size"); - $result = $photo->set_thumbnail($filename, $thumbnail_size, $thumbnail_size) + $result = $photo->set_thumb($filename, $thumb_size, $thumb_size) ->set_resize($filename, $resize_size, $resize_size) ->save(); -- cgit v1.2.3