aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-12-21 19:26:08 +0100
committerGravatar GitHub <noreply@github.com> 2025-12-21 19:26:08 +0100
commit1a3912f25a27c8d78aacbbee98f6056f4ad47f1a (patch)
tree90fe6bd955535aed22152fc3a41a51a4958f4d4d /app/views
parent672411ca7053345634a63dd3eabed75baf93043f (diff)
Improve configuration checks (#8334)
Add a distinction between recommended and required extensions. Add check for recommended php-intl extension as follow-up of https://github.com/FreshRSS/FreshRSS/pull/8329#issuecomment-3677686581 Improve related checks such as ZIP. Reduce duplicated translations and tests.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/update/checkInstall.phtml20
1 files changed, 10 insertions, 10 deletions
diff --git a/app/views/update/checkInstall.phtml b/app/views/update/checkInstall.phtml
index 68a1b5e24..6c1b5f69d 100644
--- a/app/views/update/checkInstall.phtml
+++ b/app/views/update/checkInstall.phtml
@@ -5,34 +5,34 @@
?>
<main class="post">
<h1><?= _t('gen.menu.check_install') ?></h1>
- <h2><?= _t('admin.check_install.php') ?></h2>
+ <h2><?= _t('install.check.php') ?></h2>
<?php foreach ($this->status_php as $key => $status) { ?>
- <p class="alert <?= $status ? 'alert-success' : 'alert-error' ?>">
+ <p class="alert <?= match ($status) { 'ok' => 'alert-success', 'warn' => 'alert-warn', default => 'alert-error' } ?>">
<?php
if ($key === 'php') {
- echo _t('admin.check_install.' . $key . '.' . ($status ? 'ok' : 'nok'), PHP_VERSION, FRESHRSS_MIN_PHP_VERSION);
+ echo _t('install.check.' . $key . '.' . ($status === 'ok' ? 'ok' : 'nok'), PHP_VERSION, FRESHRSS_MIN_PHP_VERSION);
} else {
- echo _t('admin.check_install.' . $key . '.' . ($status ? 'ok' : 'nok'));
+ echo _t('install.check.' . $key . '.' . ($status === 'ok' ? 'ok' : 'nok'));
}
?>
</p>
<?php } ?>
- <h2><?= _t('admin.check_install.files') ?></h2>
+ <h2><?= _t('install.check.files') ?></h2>
<?php foreach ($this->status_files as $key => $status) { ?>
- <p class="alert <?= $status ? 'alert-success' : 'alert-error' ?>">
- <?= _t('admin.check_install.' . $key . '.' . ($status ? 'ok' : 'nok')) ?>
+ <p class="alert <?= match ($status) { 'ok' => 'alert-success', 'warn' => 'alert-warn', default => 'alert-error' } ?>">
+ <?= _t('install.check.' . $key . '.' . ($status === 'ok' ? 'ok' : 'nok')) ?>
</p>
<?php } ?>
<?php /*
- <h2><?= _t('admin.check_install.database') ?></h2>
+ <h2><?= _t('install.check.database') ?></h2>
<?php foreach ($this->status_database as $key => $status) { ?>
- <p class="alert <?= $status ? 'alert-success' : 'alert-error' ?>">
- <?= _t('admin.check_install.' . $key . '.' . ($status ? 'ok' : 'nok')) ?>
+ <p class="alert <?= match ($status) { 'ok' => 'alert-success', 'warn' => 'alert-warn', default => 'alert-error' } ?>">
+ <?= _t('install.check.' . $key . '.' . ($status === 'ok' ? 'ok' : 'nok')) ?>
</p>
<?php } ?>
*/ ?>