commit a37e9b5fa1aaf1eb769d11c08faff786afd00021
parent 811ff2e83536d68b002d54ba986e3d41705a5680
Author: Timo A. Hummel <felicitus@felicitus.org>
Date: Mon, 2 Nov 2015 23:09:17 +0100
Check for mb_convert_case, fixes #443
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/app/PartKeeprRequirements.php b/app/PartKeeprRequirements.php
@@ -29,6 +29,12 @@ class PartKeeprRequirements extends SymfonyRequirements
$this->checkWritable(realpath(dirname(__FILE__)."/../data/"));
$this->checkWritable(realpath(dirname(__FILE__)."/../app/"));
$this->checkWritable(realpath(dirname(__FILE__)."/../web/"));
+
+ $this->addRequirement(
+ function_exists("mb_convert_case"),
+ sprintf('The PHP function mb_convert_case does not exist.'),
+ sprintf('Please compile PHP with the mbstring functions in case you are using Gentoo, or install php-mbstring on RedHat, Fedora or CentOS.')
+ );
}
/**