mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
Better bootstrap detection.
This commit is contained in:
@@ -1587,7 +1587,7 @@ class e107
|
|||||||
*/
|
*/
|
||||||
public static function css($type, $data, $dep = null, $media = 'all', $preComment = '', $postComment = '', $dependence = null)
|
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);
|
define("e_BOOTSTRAP", true);
|
||||||
}
|
}
|
||||||
|
@@ -2424,6 +2424,7 @@ class e_parser
|
|||||||
|
|
||||||
$doc = $this->domObj;
|
$doc = $this->domObj;
|
||||||
|
|
||||||
|
$doc->preserveWhiteSpace = true;
|
||||||
$doc->loadHTML($html);
|
$doc->loadHTML($html);
|
||||||
|
|
||||||
$tg = explode(",", $taglist);
|
$tg = explode(",", $taglist);
|
||||||
|
Reference in New Issue
Block a user