| @@ 29-38 (lines=10) @@ | ||
| 26 | } |
|
| 27 | } |
|
| 28 | ||
| 29 | private static function checkUserSetup() |
|
| 30 | { |
|
| 31 | if (UserModel::find()->where('id != 1')->count() == 0) { |
|
| 32 | $link = Html::a('user module', ['/user/admin/create']); |
|
| 33 | \Yii::$app->session->addFlash( |
|
| 34 | 'warning', |
|
| 35 | "There is no additional user registered, visit {$link} to create an editor." |
|
| 36 | ); |
|
| 37 | } |
|
| 38 | } |
|
| 39 | ||
| 40 | private static function checkPagesSetup() |
|
| 41 | { |
|
| @@ 40-49 (lines=10) @@ | ||
| 37 | } |
|
| 38 | } |
|
| 39 | ||
| 40 | private static function checkPagesSetup() |
|
| 41 | { |
|
| 42 | if (!\Yii::$app->getModule('pages')->getLocalizedRootNode()) { |
|
| 43 | $link = Html::a('pages module', ['/pages']); |
|
| 44 | \Yii::$app->session->addFlash( |
|
| 45 | 'warning', |
|
| 46 | "There is no navigation root node, visit {$link} to create a root node." |
|
| 47 | ); |
|
| 48 | } |
|
| 49 | } |
|
| 50 | ||
| 51 | /** |
|
| 52 | * Password check |
|