dumpBackup.php: Remove --force-normal option
[lhc/web/wiklou.git] / maintenance / backup.inc
index 222c538..93010ae 100644 (file)
@@ -135,9 +135,9 @@ class BackupDumper {
                foreach ( $args as $arg ) {
                        $matches = array();
                        if ( preg_match( '/^--(.+?)(?:=(.+?)(?::(.+?))?)?$/', $arg, $matches ) ) {
-                               wfSuppressWarnings();
+                               MediaWiki\suppressWarnings();
                                list( /* $full */, $opt, $val, $param ) = $matches;
-                               wfRestoreWarnings();
+                               MediaWiki\restoreWarnings();
 
                                switch ( $opt ) {
                                        case "plugin":
@@ -174,12 +174,6 @@ class BackupDumper {
                                        case "server":
                                                $this->server = $val;
                                                break;
-                                       case "force-normal":
-                                               if ( !function_exists( 'utf8_normalize' ) ) {
-                                                       $this->fatalError( "UTF-8 normalization extension not loaded. " .
-                                                               "Install or remove --force-normal parameter to use slower code." );
-                                               }
-                                               break;
                                        default:
                                                $this->processOption( $opt, $val, $param );
                                }