Commit a4bfb301 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1800098: Checking for mbstring in sanity check



behatnotneeded

Change-Id: I445beffa7fc4f9fad121662e202bbc466d6c0f02
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 1a81d018
...@@ -19,6 +19,7 @@ $string['mysqldbextensionnotloaded'] = 'Your server configuration does not inclu ...@@ -19,6 +19,7 @@ $string['mysqldbextensionnotloaded'] = 'Your server configuration does not inclu
$string['mysqlmodulenolongersupported1'] = 'Your server configuration does not include the mysqli extension. Please make sure that it is loaded in php.ini or install it if it is not installed. Mahara stopped supporting the mysql extension in version 16.10'; $string['mysqlmodulenolongersupported1'] = 'Your server configuration does not include the mysqli extension. Please make sure that it is loaded in php.ini or install it if it is not installed. Mahara stopped supporting the mysql extension in version 16.10';
$string['unknowndbtype'] = 'Your server configuration references an unknown database type. Valid values are "postgres" and "mysql". Please change the database type setting in config.php.'; $string['unknowndbtype'] = 'Your server configuration references an unknown database type. Valid values are "postgres" and "mysql". Please change the database type setting in config.php.';
$string['domextensionnotloaded'] = 'Your server configuration does not include the dom extension. Mahara requires this in order to parse XML data from a variety of sources.'; $string['domextensionnotloaded'] = 'Your server configuration does not include the dom extension. Mahara requires this in order to parse XML data from a variety of sources.';
$string['mbstringextensionnotloaded'] = 'Your server configuration does not include the mbstring extension. Mahara requires this in order to parse multi-byte strings for varying languages.';
$string['xmlextensionnotloaded'] = 'Your server configuration does not include the %s extension. Mahara requires this in order to parse XML data from a variety of sources. Please make sure that it is loaded in php.ini or install it if it is not installed.'; $string['xmlextensionnotloaded'] = 'Your server configuration does not include the %s extension. Mahara requires this in order to parse XML data from a variety of sources. Please make sure that it is loaded in php.ini or install it if it is not installed.';
$string['gdextensionnotloaded'] = 'Your server configuration does not include the gd extension. Mahara requires this in order to perform resizes and other operations on uploaded images. Please make sure that it is loaded in php.ini or install it if it is not installed.'; $string['gdextensionnotloaded'] = 'Your server configuration does not include the gd extension. Mahara requires this in order to perform resizes and other operations on uploaded images. Please make sure that it is loaded in php.ini or install it if it is not installed.';
$string['gdfreetypenotloaded'] = 'Your server configuration of the gd extension does not include Freetype support. Please make sure that gd is configured with it.'; $string['gdfreetypenotloaded'] = 'Your server configuration of the gd extension does not include Freetype support. Please make sure that gd is configured with it.';
......
...@@ -63,7 +63,9 @@ function ensure_sanity() { ...@@ -63,7 +63,9 @@ function ensure_sanity() {
if (!extension_loaded('dom')) { if (!extension_loaded('dom')) {
throw new ConfigSanityException(get_string('domextensionnotloaded', 'error')); throw new ConfigSanityException(get_string('domextensionnotloaded', 'error'));
} }
if (!extension_loaded('mbstring')) {
throw new ConfigSanityException(get_string('mbstringextensionnotloaded', 'error'));
}
// Check for freetype in the gd extension // Check for freetype in the gd extension
$gd_info = gd_info(); $gd_info = gd_info();
if (!$gd_info['FreeType Support']) { if (!$gd_info['FreeType Support']) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment