Ignore theme loader if baseUrl is not set

This commit is contained in:
Lucas Bartholemy 2018-06-27 16:00:36 +02:00
parent d78e352848
commit 00a5229199

View File

@ -11,6 +11,7 @@ namespace humhub\modules\ui\view\bootstrap;
use humhub\libs\BaseSettingsManager;
use humhub\modules\ui\view\components\Theme;
use humhub\modules\ui\view\helpers\ThemeHelper;
use Yii;
use yii\base\BootstrapInterface;
/**
@ -29,7 +30,7 @@ class ThemeLoader implements BootstrapInterface
public function bootstrap($app)
{
// Skip dynamic theme loading during the installation
if (!BaseSettingsManager::isDatabaseInstalled()) {
if (!BaseSettingsManager::isDatabaseInstalled() || Yii::getAlias('@web', false) === false) {
return;
}