@@ -73,9 +73,9 @@ |
||
73 | 73 | $first = reset($parts); |
74 | 74 | |
75 | 75 | // Check for a full route path where the module ends with admin like `newsadmin` and this module is loaded in the list of modules. |
76 | - if (count($parts) > 0 && Yii::$app->hasModule($first) && StringHelper::endsWith($first, 'admin')) |
|
77 | - $this->_isAdmin = true; |
|
78 | - elseif (StringHelper::startsWith($first, 'admin')) { |
|
76 | + if (count($parts) > 0 && Yii::$app->hasModule($first) && StringHelper::endsWith($first, 'admin')) { |
|
77 | + $this->_isAdmin = true; |
|
78 | + } elseif (StringHelper::startsWith($first, 'admin')) { |
|
79 | 79 | $this->_isAdmin = true; |
80 | 80 | } else { |
81 | 81 | $this->_isAdmin = false; |