Просмотр исходного кода

Merge branch 'master' of https://github.com/unaio/una

AntonLV 4 лет назад
Родитель
Сommit
11de7c9063
1 измененных файлов с 3 добавлено и 1 удалено
  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()