Procházet zdrojové kódy

#3661 - Move tailwind in core templates

RomanL před 4 roky
rodič
revize
51f9d4ef81
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      template/scripts/BxBaseConfig.php

+ 3 - 1
template/scripts/BxBaseConfig.php

@@ -71,7 +71,9 @@ class BxBaseConfig extends BxDol implements iBxDolSingleton
     function __construct()
     {
         parent::__construct();
-        $this->_aConfig['aLessConfig']['bx-root-class-name'] =  BxDolTemplate::getInstance()->getCssClassName();
+        
+        if (class_exists('BxDolTemplate'))
+            $this->_aConfig['aLessConfig']['bx-root-class-name'] =  BxDolTemplate::getInstance()->getCssClassName();
     }
 
     public static function getInstance()