mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
{NEWSTHUMBNAIL} fix.
This commit is contained in:
@@ -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.
|
||||
{
|
||||
|
Reference in New Issue
Block a user