Follow-up r76456: more thorough check for UTF-8 support. Now it checks whether PCRE...
authorMax Semenik <maxsem@users.mediawiki.org>
Sat, 19 Feb 2011 07:27:27 +0000 (07:27 +0000)
committerMax Semenik <maxsem@users.mediawiki.org>
Sat, 19 Feb 2011 07:27:27 +0000 (07:27 +0000)
includes/installer/Installer.php

index 3677e78..53c19ea 100644 (file)
@@ -725,7 +725,7 @@ abstract class Installer {
                        return false;
                }
                wfSuppressWarnings();
-               $regexd = preg_replace( '/[\x{0400}-\x{04FF}]/u', '', '-АБВГД-' );
+               $regexd = preg_replace( '/[\x{0430}-\x{04FF}]/iu', '', '-АБВГД-' );
                wfRestoreWarnings();
                if ( $regexd != '--' ) {
                        $this->showMessage( 'config-pcre-no-utf8' );