X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=blobdiff_plain;f=includes%2FSetup.php;h=878b147b61b65561ea527c51ddc74ae106616b83;hb=3b891947886106188eaaadd07046174fa78167b1;hp=2c780617509b30856798675e9a995c41401694cb;hpb=7c4867fa94be9fc417184abbf181d3b04c563385;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Setup.php b/includes/Setup.php index 2c78061750..878b147b61 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -45,6 +45,13 @@ if ( !isset( $wgVersion ) ) { die( 1 ); } +if ( function_exists( 'mb_internal_encoding' ) ) { + mb_internal_encoding( 'UTF-8' ); +} elseif ( !defined( 'MEDIAWIKI_INSTALL' ) ) { + echo "Error: the mbstring PHP extension is required\n"; + die( 1 ); +} + // Set various default paths sensibly... $ps_default = Profiler::instance()->scopedProfileIn( $fname . '-defaults' );