fix: #5324 check if module provided via string (#5325)

This commit is contained in:
Horváth Gergely 2021-10-01 16:32:32 +02:00 committed by GitHub
parent 9801c330f2
commit 839bc64818
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ class ThemeHelper
// Collect themes provided by modules
foreach (Yii::$app->getModules() as $id => $module) {
if (is_array($module)) {
if (is_array($module) || is_string($module)) {
$module = Yii::$app->getModule($id);
}