1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Featurebox wasn't detecting smaller images requiring resizing.

This commit is contained in:
Cameron
2013-11-21 15:48:51 -08:00
parent b0f717e416
commit 5f6e76f97b

View File

@@ -127,7 +127,7 @@ class plugin_featurebox_item extends e_model
parse_str($parm, $parm); parse_str($parm, $parm);
$tp = e107::getParser(); $tp = e107::getParser();
if($tp->thumbWidth > 600 && $tp->thumbHeight > 300) //Guessing it's a featurebox image. Use {SETIMAGE} inside theme.php to configure. if($tp->thumbWidth > 100 && $tp->thumbHeight > 100) //Guessing it's a featurebox image. Use {SETIMAGE} inside theme.php to configure.
{ {
$src = $tp->thumbUrl($this->get('fb_image')); //XXX TODO TBD Add a pref to use without resizing? Or, detect {SETIMAGE} in template to enable? $src = $tp->thumbUrl($this->get('fb_image')); //XXX TODO TBD Add a pref to use without resizing? Or, detect {SETIMAGE} in template to enable?
} }