根据注册开放状态决定是否显示注册入口

This commit is contained in:
Chenx221 2024-03-31 13:55:07 +08:00
parent 83db8e3616
commit ccc4335188
Signed by: chenx221
GPG Key ID: D7A9EC07024C3021

View File

@ -42,6 +42,7 @@ $this->registerLinkTag(['rel' => 'icon', 'type' => 'image/x-icon', 'href' => Yii
'items' => [
['label' => '首页', 'url' => ['/site/index']],
['label' => '登录', 'url' => ['/user/login']],
$_ENV['REGISTRATION_ENABLED'] === 'false'? '' : ['label' => '注册', 'url' => ['/user/register']],
]
]);
NavBar::end();