mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Fixed - Featurebox was ignoring {SETIMAGE} values.
This commit is contained in:
@@ -127,8 +127,10 @@ class plugin_featurebox_item extends e_model
|
|||||||
parse_str($parm, $parm);
|
parse_str($parm, $parm);
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
|
|
||||||
$src = $tp->replaceConstants($this->get('fb_image'), 'full');
|
// $src = $tp->replaceConstants($this->get('fb_image'), 'full');
|
||||||
|
// 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?
|
||||||
|
|
||||||
if(isset($parm['src']))
|
if(isset($parm['src']))
|
||||||
{
|
{
|
||||||
return $src;
|
return $src;
|
||||||
|
Reference in New Issue
Block a user