Resolved #150 added mbstring as depency (always preinstalled anyways)

This commit is contained in:
kremsy 2017-06-21 18:17:19 +02:00
parent 69f566fb0c
commit 56ae4a8525
2 changed files with 13 additions and 2 deletions

View File

@ -34,12 +34,13 @@ https://www.maniacontrol.com
## REQUIREMENTS:
- MySQL Database
- PHP 5.4+
- Needed extensions (on ManiaControl startup you will see if you have them activated):
- Needed extensions (on ManiaControl startup you will see if you have them installed and activated):
- php_mysqli
- php_curl
- php_xmlrpc (TM only, recommended for SM)
- php_zlib
- php_zip
- php_mbstring
### How to report bugs or request features?:
- Write a mail to bugs(at)maniacontrol(dot)com

View File

@ -97,6 +97,16 @@ class SystemUtil {
Logger::log($message . 'FOUND!');
}
// Check for MBString
$message = 'Checking for installed mbstring ... ';
if (!extension_loaded('mbstring')) {
Logger::log($message . 'NOT FOUND!');
Logger::log(" -- You don't have mbstring installed! Check: http://php.net/manual/en/mbstring.setup.php");
$success = false;
} else {
Logger::log($message . 'FOUND!');
}
if (!$success) {
// Missing requirements
self::quit();