mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
feat(installer): Fully show non-installed extensions (#1761)
This commit is contained in:
parent
14ed0ce4ed
commit
8fcc62d2a2
1 changed files with 8 additions and 2 deletions
10
install.php
10
install.php
|
@ -168,12 +168,18 @@ if (!version_compare(PHP_VERSION, CHECK_REQUIREMENTS['php_min_version'], '>='))
|
|||
foreach (CHECK_REQUIREMENTS['ext_list'] as $ext) {
|
||||
if (!extension_loaded($ext)) {
|
||||
out("- ext-$ext not installed. Check out php.ini file", 'error');
|
||||
exit;
|
||||
if (!defined('EXTENSIONS_NOT_INSTALLED')) {
|
||||
define('EXTENSIONS_NOT_INSTALLED', true);
|
||||
}
|
||||
} else {
|
||||
out("- ext-$ext installed!");
|
||||
}
|
||||
}
|
||||
out("- All extensions are installed!\n", 'success');
|
||||
if (!defined('EXTENSIONS_NOT_INSTALLED')) {
|
||||
out("- All extensions are installed!\n", 'success');
|
||||
} else {
|
||||
exit;
|
||||
}
|
||||
|
||||
// Check if already installed
|
||||
if (is_file(BB_ROOT . '.env')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue