mirror of
https://github.com/e107inc/e107.git
synced 2025-08-27 16:20:13 +02:00
Fixes #803 - TinyMce Image paths issue.
This commit is contained in:
@@ -41,6 +41,7 @@ class bb_img extends e_bb_base
|
||||
// Replace the bbcode path with a real one.
|
||||
$code_text = str_replace('{e_MEDIA}','{e_MEDIA_IMAGE}',$code_text); //BC 0.8 fix.
|
||||
$code_text = str_replace('{e_MEDIA_IMAGE}', e_HTTP."thumb.php?src=e_MEDIA_IMAGE/", $code_text);
|
||||
$code_text = str_replace('{e_THEME}', e_HTTP."thumb.php?src=e_THEME/", $code_text);
|
||||
$imgParms = $this->processParm($code_text, $parm);
|
||||
|
||||
foreach($imgParms as $k => $v)
|
||||
@@ -124,7 +125,7 @@ class bb_img extends e_bb_base
|
||||
|
||||
if (trim($code_text) == "") return ""; // Do nothing on empty file
|
||||
|
||||
if(substr($code_text,0,15) == '{e_MEDIA_IMAGE}') // Image from Media-Manager.
|
||||
if(substr($code_text,0,15) == '{e_MEDIA_IMAGE}' || substr($code_text,0,9) == '{e_MEDIA}' || substr($code_text,0,9) == '{e_THEME}') // Image from Media-Manager.
|
||||
{
|
||||
return $this->mediaImage($code_text, $parm);
|
||||
}
|
||||
|
Reference in New Issue
Block a user