fix phpstan error
This commit is contained in:
parent
ab342367a5
commit
1083ad2633
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ class index
|
|||
'theme' => explode(',', DC_DISTRIB_THEMES),
|
||||
];
|
||||
|
||||
if (!isset(dcCore::app()->themes)) {
|
||||
if (!(dcCore::app()->themes instanceof dcThemes)) {
|
||||
dcCore::app()->themes = new dcThemes();
|
||||
dcCore::app()->themes->loadModules(dcCore::app()->blog->themes_path, null);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue