1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 00:54:49 +02:00

BC Fix for {NEWSTHUMBNAIL}

This commit is contained in:
Cameron
2014-01-31 04:12:34 -08:00
parent cc07dac897
commit ab8c93eefa
2 changed files with 37 additions and 5 deletions

View File

@@ -124,7 +124,7 @@ class bb_img extends e_bb_base
return $this->mediaImage($code_text, $parm);
}
if (preg_match("#\.php\?.*#",$code_text)){return "";} //XXX Breaks MediaManager Images, so do it after mediaManager check.
@@ -137,10 +137,11 @@ class bb_img extends e_bb_base
$h = e107::getBB()->resizeHeight();
// No resizing on v1.x legacy images.
if(strpos($code_text,"://")==false && ($w || $h) && strpos($code_text,"{e_IMAGE}custom")===false && strpos($code_text,"{e_IMAGE}newpost_images")===false) // local file.
if(strpos($code_text,"://")==false && ($w || $h) && strpos($code_text,"{e_IMAGE}custom")===false && strpos($code_text,"newspost_images/")===false) // local file.
{
$code_text = $tp->thumbUrl($code_text,'w='.$w.'&h='.$h);
}
// ------------------------
$search = array('"', '{E_IMAGE}', '{E_FILE}', '{e_IMAGE}', '{e_FILE}');