mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
Ignore theme loader if baseUrl is not set
This commit is contained in:
parent
d78e352848
commit
00a5229199
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user