diff options
| author | 2025-12-21 19:26:08 +0100 | |
|---|---|---|
| committer | 2025-12-21 19:26:08 +0100 | |
| commit | 1a3912f25a27c8d78aacbbee98f6056f4ad47f1a (patch) | |
| tree | 90fe6bd955535aed22152fc3a41a51a4958f4d4d /app/install.php | |
| parent | 672411ca7053345634a63dd3eabed75baf93043f (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/install.php')
| -rw-r--r-- | app/install.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/app/install.php b/app/install.php index 30346c1ae..3abd652e8 100644 --- a/app/install.php +++ b/app/install.php @@ -444,6 +444,9 @@ function printStep1Template(string $key, string $value, array $messageParams = [ if ('ok' === $value) { $message = _t("install.check.{$key}.ok", ...$messageParams); ?><p class="alert alert-success"><span class="alert-head"><?= _t('gen.short.ok') ?></span> <?= $message ?></p><?php + } elseif ($value === 'warn') { + $message = _t("install.check.{$key}.nok", ...$messageParams); + ?><p class="alert alert-warn"><span class="alert-head"><?= _t('gen.short.attention') ?></span> <?= $message ?></p><?php } else { $message = _t("install.check.{$key}.nok", ...$messageParams); ?><p class="alert alert-error"><span class="alert-head"><?= _t('gen.short.damn') ?></span> <?= $message ?></p><?php @@ -473,7 +476,7 @@ function getProcessUsername(): string { function printStep1(): void { $res = checkRequirements(); ?> - <h2><?= _t('admin.check_install.php') ?></h2> + <h2><?= _t('install.check.php') ?></h2> <noscript><p class="alert alert-warn"><span class="alert-head"><?= _t('gen.short.attention') ?></span> <?= _t('install.javascript_is_better') ?></p></noscript> <?php printStep1Template('php', $res['php'], [PHP_VERSION, FRESHRSS_MIN_PHP_VERSION]); @@ -487,9 +490,11 @@ function printStep1(): void { printStep1Template('dom', $res['dom']); printStep1Template('xml', $res['xml']); printStep1Template('mbstring', $res['mbstring']); + printStep1Template('intl', $res['intl']); printStep1Template('fileinfo', $res['fileinfo']); + printStep1Template('zip', $res['zip']); ?> - <h2><?= _t('admin.check_install.files') ?></h2> + <h2><?= _t('install.check.files') ?></h2> <?php $processUsername = getProcessUsername(); printStep1Template('data', $res['data'], [DATA_PATH, $processUsername]); |
