mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Thumb query path updates
This commit is contained in:
@@ -38,7 +38,8 @@ class bb_img extends e_bb_base
|
|||||||
{
|
{
|
||||||
$tp = e107::getParser();
|
$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);
|
$imgParms = $this->processParm($code_text, $parm);
|
||||||
|
|
||||||
foreach($imgParms as $k => $v)
|
foreach($imgParms as $k => $v)
|
||||||
|
@@ -72,7 +72,7 @@ if($_POST['mode'] == 'tobbcode')
|
|||||||
if(check_class($pref['post_html'])) // Plain HTML mode.
|
if(check_class($pref['post_html'])) // Plain HTML mode.
|
||||||
{
|
{
|
||||||
$srch = array('src="'.e_HTTP.'thumb.php?','src="/{e_MEDIA_IMAGE}');
|
$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);
|
$content = str_replace($srch, $repl, $content);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user