1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 07:36:32 +02:00

Cleaned up the Default Image Size in Media-Manager Preference area. Remove 'width=' from [img] when it matches the default size.

This commit is contained in:
Cameron
2018-01-26 15:54:54 -08:00
parent 4d3ef86bb7
commit c162981fbd
6 changed files with 63 additions and 34 deletions

View File

@@ -189,6 +189,9 @@ TEMPL;
{
// echo $_POST['content'];
global $pref, $tp;
e107::getBB()->setClass($_SESSION['media_category']);
$content = stripslashes($content);
if(check_class($pref['post_html'])) // Plain HTML mode.
@@ -216,6 +219,7 @@ TEMPL;
$text = str_replace('[html]<p></p>[/html]','',$text); // cleanup.
e107::getBB()->clearClass();
return $text;
}