mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-05-10 12:58:21 +03:00
Поддержка загрузки конфига шаблона из каталога settings/config/, например, /templates/skin/new/settings/config/config.php
This commit is contained in:
parent
de59cba7a0
commit
0fc43f914f
|
@ -167,4 +167,11 @@ if($aPluginsList=@file($sPluginsListFile)) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Загружает конфиг текущего шаблона
|
||||
*/
|
||||
if(file_exists(Config::Get('path.smarty.template').'/settings/config/config.php')) {
|
||||
Config::LoadFromFile(Config::Get('path.smarty.template').'/settings/config/config.php',false);
|
||||
}
|
||||
?>
|
|
@ -654,8 +654,6 @@ class ModuleViewer extends Module {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->aFileRules = Config::Get('head.rules');
|
||||
}
|
||||
/**
|
||||
* Создает css-компрессор и инициализирует его конфигурацию
|
||||
|
@ -718,6 +716,7 @@ class ModuleViewer extends Module {
|
|||
*/
|
||||
$aResult = $this->aFilesDefault;
|
||||
|
||||
$this->aFileRules = Config::Get('head.rules');
|
||||
foreach((array)$this->aFileRules as $sName => $aRule) {
|
||||
if(!$aRule['path']) continue;
|
||||
|
||||
|
|
Loading…
Reference in a new issue