1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Thumb query path updates

This commit is contained in:
Cameron
2013-03-18 03:34:47 -07:00
parent 4a30c7a2ca
commit 35c46b3a82
2 changed files with 3 additions and 2 deletions

View File

@@ -38,7 +38,8 @@ class bb_img extends e_bb_base
{
$tp = e107::getParser();
$code_text = str_replace('{e_MEDIA_IMAGE}', e_HTTP."thumb.php?src={e_MEDIA_IMAGE}", $code_text);
// Replace the bbcode path with a real one.
$code_text = str_replace('{e_MEDIA_IMAGE}', e_HTTP."thumb.php?src=e_MEDIA_IMAGE/", $code_text);
$imgParms = $this->processParm($code_text, $parm);
foreach($imgParms as $k => $v)

View File

@@ -72,7 +72,7 @@ if($_POST['mode'] == 'tobbcode')
if(check_class($pref['post_html'])) // Plain HTML mode.
{
$srch = array('src="'.e_HTTP.'thumb.php?','src="/{e_MEDIA_IMAGE}');
$repl = array('src="{e_BASE}thumb.php?','src="{e_BASE}thumb.php?src={e_MEDIA_IMAGE}');
$repl = array('src="{e_BASE}thumb.php?','src="{e_BASE}thumb.php?src=e_MEDIA_IMAGE/');
$content = str_replace($srch, $repl, $content);