We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 165ddcf commit 284096fCopy full SHA for 284096f
Bootstrap.php
@@ -14,8 +14,7 @@ class Bootstrap implements BootstrapInterface
14
*/
15
public function bootstrap($app)
16
{
17
- if ($app instanceof \yii\web\Application) {
18
- $i18nModule = Yii::$app->getModule('i18n');
+ if ($app instanceof \yii\web\Application && $i18nModule = Yii::$app->getModule('i18n')) {
19
$moduleId = $i18nModule->id;
20
$app->getUrlManager()->addRules([
21
'translations/<id:\d+>' => $moduleId . '/default/update',
0 commit comments