From 988ce38d605eb2c9c3000c267bc82fb564070519 Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 4 Feb 2014 04:13:35 -0800 Subject: [PATCH] {NEWSTHUMBNAIL} fix. --- e107_core/shortcodes/batch/news_shortcodes.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/e107_core/shortcodes/batch/news_shortcodes.php b/e107_core/shortcodes/batch/news_shortcodes.php index f211ab61d..863c06dd2 100644 --- a/e107_core/shortcodes/batch/news_shortcodes.php +++ b/e107_core/shortcodes/batch/news_shortcodes.php @@ -374,13 +374,14 @@ class news_shortcodes extends e_shortcode } + if(empty($parm)) // get {SETIMAGE} values when no parm provided. { $parm = '|aw='.e107::getParser()->thumbWidth().'&ah='.e107::getParser()->thumbHeight(); } - + if($vThumb = e107::getParser()->toVideo($newsThumb, array('thumb'=>'src'))) { @@ -391,7 +392,8 @@ class news_shortcodes extends e_shortcode { $parms = eHelper::scDualParams($parm); - if(vartrue($parms[2]['legacy'])); // Legacy mode - swap out thumbnails for actual images and update paths. + + if(isset($parms[2]['legacy']) && $parms[2]['legacy']==true) // Legacy mode - swap out thumbnails for actual images and update paths. { if($newsThumb[0] != '{') // Fix old paths. {