aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-02-14 21:28:20 +0000
committerMario <mario@mariovavti.com>2024-02-14 21:28:20 +0000
commit0b18b35f5f28b0afc3104f10d33fac5b1675a76a (patch)
treeb18a855dc7fd0f38e6a7bd853114c2dcd7f00137
parent9859008271d1493ad600dff34a1d6e250378c496 (diff)
downloadvolse-hubzilla-0b18b35f5f28b0afc3104f10d33fac5b1675a76a.tar.gz
volse-hubzilla-0b18b35f5f28b0afc3104f10d33fac5b1675a76a.tar.bz2
volse-hubzilla-0b18b35f5f28b0afc3104f10d33fac5b1675a76a.zip
require the intl extension for
-rw-r--r--Zotlabs/Module/Setup.php5
-rw-r--r--composer.json1
2 files changed, 6 insertions, 0 deletions
diff --git a/Zotlabs/Module/Setup.php b/Zotlabs/Module/Setup.php
index a48c6627b..83faf85dc 100644
--- a/Zotlabs/Module/Setup.php
+++ b/Zotlabs/Module/Setup.php
@@ -527,6 +527,7 @@ class Setup extends \Zotlabs\Web\Controller {
$this->check_add($ck_funcs, t('mb_string PHP module'), true, true);
$this->check_add($ck_funcs, t('xml PHP module'), true, true);
$this->check_add($ck_funcs, t('zip PHP module'), true, true);
+ $this->check_add($ck_funcs, t('intl PHP module'), true, true);
if(function_exists('apache_get_modules')){
if(! in_array('mod_rewrite', apache_get_modules())) {
@@ -583,6 +584,10 @@ class Setup extends \Zotlabs\Web\Controller {
$ck_funcs[6]['status'] = false;
$ck_funcs[6]['help'] = t('Error: zip PHP module required but not installed.');
}
+ if(! extension_loaded('intl')) {
+ $ck_funcs[6]['status'] = false;
+ $ck_funcs[6]['help'] = t('Error: intl PHP module required but not installed.');
+ }
$checks = array_merge($checks, $ck_funcs);
}
diff --git a/composer.json b/composer.json
index e3c109c0e..06765eba9 100644
--- a/composer.json
+++ b/composer.json
@@ -26,6 +26,7 @@
"php": ">=8.0.2",
"ext-curl": "*",
"ext-iconv": "*",
+ "ext-intl": "*",
"ext-mbstring": "*",
"ext-xml": "*",
"ext-openssl": "*",