sanity check: require UConverter from php intl

This commit is contained in:
Andrew Dolgov 2019-05-01 09:32:46 +03:00
parent bf5dfc444e
commit 66cbe55148
1 changed files with 4 additions and 0 deletions

View File

@ -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.");
}