1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +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,6 +374,7 @@ class news_shortcodes extends e_shortcode
}
if(empty($parm)) // get {SETIMAGE} values when no parm provided.
{
@@ -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.
{