diff --git a/class2.php b/class2.php index cef303ce2..b38d58041 100644 --- a/class2.php +++ b/class2.php @@ -2323,13 +2323,19 @@ class e_http_header } - function setContent($content) + function setContent($content,$search=null,$replace=null) { if($content == 'buffer') { $this->length = ob_get_length(); - $this->content = ob_get_clean(); + $this->content = ob_get_clean(); + + if(!empty($search) && !empty($replace)) + { + $this->content = str_replace($search, $replace, $this->content); + $this->length = strlen($this->content); + } } else diff --git a/e107_admin/footer.php b/e107_admin/footer.php index 931419ddb..7fc7279f8 100644 --- a/e107_admin/footer.php +++ b/e107_admin/footer.php @@ -422,7 +422,7 @@ else //$length = ob_get_length(); // $page = ob_get_clean(); // } -unset($tmp1, $tmp1); + @@ -430,7 +430,15 @@ unset($tmp1, $tmp1); // New - see class2.php $ehd = new e_http_header; -$ehd->setContent('buffer'); +if($tmp) +{ + $ehd->setContent('buffer',$tmp['search'],$tmp['replace']); +} +else +{ + $ehd->setContent('buffer'); +} +unset($tmp1, $tmp1); $ehd->send(); $page = $ehd->getOutput(); // $ehd->debug(); diff --git a/e107_themes/bootstrap3/admin_theme.php b/e107_themes/bootstrap3/admin_theme.php index 0c87938e2..24b253d1a 100644 --- a/e107_themes/bootstrap3/admin_theme.php +++ b/e107_themes/bootstrap3/admin_theme.php @@ -55,7 +55,7 @@ body.forceColors li a { color: silver} div#media-manager div.mce-window-head { background-color: #373737; !important } div#media-manager div.mce-title { color:white; } -div#media-manager, html { color: silver; background-color: #373737; !important} +div#media-manager, html { color: silver; background-color: #2F2F2F; !important} ");