summaryrefslogtreecommitdiff
path: root/include/sanity_check.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-05-01 09:32:46 +0300
committerAndrew Dolgov <[email protected]>2019-05-01 09:32:46 +0300
commit66cbe55148ff15dac97ea8d56fcb0c79366469f7 (patch)
treed0347c28d9ebf3eed300c28f2796cad72bef1187 /include/sanity_check.php
parentbf5dfc444e11aa84b1ad193c1901b9919c5effac (diff)
sanity check: require UConverter from php intl
Diffstat (limited to 'include/sanity_check.php')
-rwxr-xr-xinclude/sanity_check.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sanity_check.php b/include/sanity_check.php
index 654c83e38..f06cf0a39 100755
--- a/include/sanity_check.php
+++ b/include/sanity_check.php
@@ -56,6 +56,10 @@
array_push($errors, "PHP version 5.6.0 or newer required. You're using " . PHP_VERSION . ".");
}
+ if (!class_exists("UConverter")) {
+ array_push($errors, "PHP UConverter class is missing, it's provided by the Internationalization (intl) module.");
+ }
+
if (CONFIG_VERSION != EXPECTED_CONFIG_VERSION) {
array_push($errors, "Configuration file (config.php) has incorrect version. Update it with new options from config.php-dist and set CONFIG_VERSION to the correct value.");
}