Merge "Perform a permission check on the title when changing the page language"
[lhc/web/wiklou.git] / maintenance / language / checkDupeMessages.php
index baa9c71..92ddc44 100644 (file)
@@ -93,10 +93,9 @@ if ( $run ) {
        $count = 0;
 
        if ( ( $messageExist ) && ( $messageCExist ) ) {
-
                if ( !strcmp( $runMode, 'php' ) ) {
                        print "<?php\n";
-                       print '$dupeMessages = array(' . "\n";
+                       print '$dupeMessages = [' . "\n";
                }
                foreach ( $wgMessages[$langCodeC] as $key => $value ) {
                        foreach ( $wgMessages[$langCode] as $ckey => $cvalue ) {
@@ -118,7 +117,7 @@ if ( $run ) {
                        }
                }
                if ( !strcmp( $runMode, 'php' ) ) {
-                       print ");\n";
+                       print "];\n";
                }
                if ( !strcmp( $runMode, 'text' ) ) {
                        if ( $count == 1 ) {