dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Make MapCacheLRU throw errors for bad $field arguments"
[lhc/web/wiklou.git]
/
maintenance
/
language
/
checkDupeMessages.php
diff --git
a/maintenance/language/checkDupeMessages.php
b/maintenance/language/checkDupeMessages.php
index
5d48244
..
92ddc44
100644
(file)
--- a/
maintenance/language/checkDupeMessages.php
+++ b/
maintenance/language/checkDupeMessages.php
@@
-21,6
+21,7
@@
* @ingroup MaintenanceLanguage
*/
* @ingroup MaintenanceLanguage
*/
+$optionsWithArgs = [ 'lang', 'clang', 'mode' ];
require_once __DIR__ . '/../commandLine.inc';
$messagesDir = __DIR__ . '/../../languages/messages/';
$runTest = false;
require_once __DIR__ . '/../commandLine.inc';
$messagesDir = __DIR__ . '/../../languages/messages/';
$runTest = false;
@@
-92,10
+93,9
@@
if ( $run ) {
$count = 0;
if ( ( $messageExist ) && ( $messageCExist ) ) {
$count = 0;
if ( ( $messageExist ) && ( $messageCExist ) ) {
-
if ( !strcmp( $runMode, 'php' ) ) {
print "<?php\n";
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 ) {
}
foreach ( $wgMessages[$langCodeC] as $key => $value ) {
foreach ( $wgMessages[$langCode] as $ckey => $cvalue ) {
@@
-117,7
+117,7
@@
if ( $run ) {
}
}
if ( !strcmp( $runMode, 'php' ) ) {
}
}
if ( !strcmp( $runMode, 'php' ) ) {
- print "
)
;\n";
+ print "
]
;\n";
}
if ( !strcmp( $runMode, 'text' ) ) {
if ( $count == 1 ) {
}
if ( !strcmp( $runMode, 'text' ) ) {
if ( $count == 1 ) {