1
0
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:
Cameron
2015-01-29 17:01:52 -08:00
parent e279160039
commit bb01287e25
2 changed files with 25 additions and 4 deletions

View File

@@ -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);
}