1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-18 20:31:41 +02:00

BC Fixes for download installation, sitelinks expanding menus, bbcode image sizes.

This commit is contained in:
Cameron
2014-01-20 06:20:58 -08:00
parent c0ea76bbe6
commit 6577f6d380
5 changed files with 105 additions and 86 deletions

View File

@@ -136,8 +136,8 @@ class bb_img extends e_bb_base
$w = e107::getBB()->resizeWidth(); // varies depending on the class set by external script. see admin->media-manager->prefs
$h = e107::getBB()->resizeHeight();
if(strpos($code_text,"://")==false && ($w || $h)) // local file.
// 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.
{
$code_text = $tp->thumbUrl($code_text,'w='.$w.'&h='.$h);
}