1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Better bootstrap detection.

This commit is contained in:
Cameron
2013-03-19 19:05:58 -07:00
parent 9285bd2b9c
commit 73bb794b67
2 changed files with 2 additions and 1 deletions

View File

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

View File

@@ -2424,6 +2424,7 @@ class e_parser
$doc = $this->domObj;
$doc->preserveWhiteSpace = true;
$doc->loadHTML($html);
$tg = explode(",", $taglist);