1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

{NEWSTHUMBNAIL} fix.

This commit is contained in:
Cameron
2014-02-04 04:13:35 -08:00
parent 3eebb493b6
commit 988ce38d60

View File

@@ -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.
{