diff --git a/e107_handlers/e107_class.php b/e107_handlers/e107_class.php index 00354db61..88047d5b0 100644 --- a/e107_handlers/e107_class.php +++ b/e107_handlers/e107_class.php @@ -1587,7 +1587,7 @@ class e107 */ public static function css($type, $data, $dep = null, $media = 'all', $preComment = '', $postComment = '', $dependence = null) { - if(strstr($data,'bootstrap') && !defined("e_BOOTSTRAP")) // detect bootstrap is enabled. - used in nextprev.sc currently. + if((strstr($data,'bootstrap.css') || strstr($data,'bootstrap.min.css')) && !defined("e_BOOTSTRAP")) // detect bootstrap is enabled. - used in nextprev.sc and forum currently. { define("e_BOOTSTRAP", true); } diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index 5e448f190..ec5466bb5 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -2424,6 +2424,7 @@ class e_parser $doc = $this->domObj; + $doc->preserveWhiteSpace = true; $doc->loadHTML($html); $tg = explode(",", $taglist);