diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-12-16 07:35:56 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-12-16 07:35:56 +0000 |
| commit | 1cd587fa0413bdbae1fc3bdca10ccc2a1fee7c07 (patch) | |
| tree | 14bafcf0798157baab784b59d22190554e804c18 /app/views | |
| parent | 52e6b5643310ba1f8b2f1f26ac4f2e03d39b476d (diff) | |
fix coding style and some bugs, re #1552
Merge request studip/studip!3764
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/login/index.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/login/index.php b/app/views/login/index.php index 7e70089..fc06e62 100644 --- a/app/views/login/index.php +++ b/app/views/login/index.php @@ -2,6 +2,8 @@ /** * @var bool $has_login_error * @var string $error_msg + * @var LoginFaq[] $faq_entries + * @var StudipNews[] $news_entries */ // Get background images (this should be resolved differently since mobile @@ -25,8 +27,8 @@ if (!match_route('web_migrate.php')) { } $show_login = !(current(StudipAuthAbstract::getInstance()) instanceof StudipAuthSSO) && StudipAuthAbstract::isLoginEnabled(); $show_hidden_login = !$show_login && StudipAuthAbstract::isLoginEnabled(); -$enable_faq = Config::get()->LOGIN_FAQ_VISIBILITY && count($faq_entries) > 0; -$enable_news = Config::get()->LOGIN_NEWS_VISIBILITY && count($news_entries) > 0; +$enable_faq = count($faq_entries) > 0; +$enable_news = count($news_entries) > 0; ?> <main id="content" class="loginpage"> <div id="background-desktop" style="background: url(<?= $bg_desktop ?>) no-repeat top left/cover;"></div> |
