From 62a4b4d3ec9bf83dabade801e2e9a2687b6beb70 Mon Sep 17 00:00:00 2001 From: slawkens Date: Sat, 23 Oct 2021 13:52:34 +0200 Subject: [PATCH] php extension zip is optional now --- composer.json | 1 - install/steps/3-requirements.php | 3 ++- system/locale/en/install.php | 1 + system/locale/pl/install.php | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index f5c67e7d..26ae0549 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,6 @@ "ext-pdo": "*", "ext-pdo_mysql": "*", "ext-xml": "*", - "ext-zip": "*", "phpmailer/phpmailer": "^6.1", "composer/semver": "^3.2", "twig/twig": "~1.42.5", diff --git a/install/steps/3-requirements.php b/install/steps/3-requirements.php index 65fa0c18..470fb387 100644 --- a/install/steps/3-requirements.php +++ b/install/steps/3-requirements.php @@ -12,10 +12,11 @@ $dirs_optional = [ ]; $extensions_required = [ - 'json', 'pdo', 'pdo_mysql', 'xml', 'zip' + 'json', 'pdo', 'pdo_mysql', 'xml' ]; $extensions_optional = [ 'gd' => $locale['step_requirements_warning_player_signatures'], + 'zip' => $locale['step_requirements_warning_install_plugins'], ]; /* * diff --git a/system/locale/en/install.php b/system/locale/en/install.php index f9e75756..e0cbfbff 100644 --- a/system/locale/en/install.php +++ b/system/locale/en/install.php @@ -41,6 +41,7 @@ $locale['step_requirements_extension'] = '$EXTENSION$ PHP extension'; $locale['step_requirements_warning_images_guilds'] = 'Guild logo upload will not work'; $locale['step_requirements_warning_images_gallery'] = 'Gallery image upload will not work'; $locale['step_requirements_warning_player_signatures'] = 'Player Signatures will not work'; +$locale['step_requirements_warning_install_plugins'] = 'It will be not possible to install plugins'; // config $locale['step_config'] = 'Configuration'; diff --git a/system/locale/pl/install.php b/system/locale/pl/install.php index c26a5fc9..5822a4d2 100644 --- a/system/locale/pl/install.php +++ b/system/locale/pl/install.php @@ -41,6 +41,7 @@ $locale['step_requirements_extension'] = 'Rozszerzenie PHP - $EXTENSION$'; $locale['step_requirements_warning_images_guilds'] = 'Nie będzie możliwości uploadu obrazków gildii'; $locale['step_requirements_warning_images_gallery'] = 'Nie będzie możliwości uploadu obrazków do galerii'; $locale['step_requirements_warning_player_signatures'] = 'Sygnatury graczy nie będą działać'; +$locale['step_requirements_warning_install_plugins'] = 'Nie będzie można instalować rozszerzeń'; // config $locale['step_config'] = 'Konfiguracja';