Index: trunk/phase3/maintenance/language/dumpMessages.php |
— | — | @@ -31,7 +31,6 @@ |
32 | 32 | } |
33 | 33 | |
34 | 34 | public function execute() { |
35 | | - global $wgVersion; |
36 | 35 | $messages = array(); |
37 | 36 | foreach ( array_keys( Language::getMessagesFor( 'en' ) ) as $key ) { |
38 | 37 | $messages[$key] = wfMsg( $key ); |
Index: trunk/phase3/maintenance/language/writeMessagesArray.inc |
— | — | @@ -80,8 +80,6 @@ |
81 | 81 | # Load messages |
82 | 82 | $dir = $prefix ? $prefix : dirname( __FILE__ ); |
83 | 83 | |
84 | | - global $wgMessageStructure, $wgBlockComments, $wgIgnoredMessages, $wgOptionalMessages; |
85 | | - |
86 | 84 | require( $dir . '/messages.inc' ); |
87 | 85 | self::$messageStructure = $wgMessageStructure; |
88 | 86 | self::$blockComments = $wgBlockComments; |
Index: trunk/phase3/maintenance/language/checkLanguage.inc |
— | — | @@ -383,7 +383,7 @@ |
384 | 384 | * @return The checks results as wiki text. |
385 | 385 | */ |
386 | 386 | function outputWiki() { |
387 | | - global $wgContLang; |
| 387 | + global $wgContLang, $IP; |
388 | 388 | $detailText = ''; |
389 | 389 | $rows[] = '! Language !! Code !! Total !! ' . implode( ' !! ', array_diff( $this->checks, $this->nonMessageChecks() ) ); |
390 | 390 | foreach ( $this->results as $code => $results ) { |
Index: trunk/phase3/maintenance/language/diffLanguage.php |
— | — | @@ -75,6 +75,7 @@ |
76 | 76 | |
77 | 77 | $foo = "wgAllMessages$languageCode"; |
78 | 78 | global $$foo; |
| 79 | + global $wgSkinNamesEn; // potentially unused global declaration? |
79 | 80 | |
80 | 81 | // it might already be loaded in LocalSettings.php |
81 | 82 | if ( !isset( $$foo ) ) { |
Index: trunk/phase3/maintenance/language/StatOutputs.php |
— | — | @@ -31,6 +31,7 @@ |
32 | 32 | /** Outputs WikiText */ |
33 | 33 | class wikiStatsOutput extends statsOutput { |
34 | 34 | function heading() { |
| 35 | + global $IP; |
35 | 36 | $version = SpecialVersion::getVersion( 'nodb' ); |
36 | 37 | echo "'''Statistics are based on:''' <code>" . $version . "</code>\n\n"; |
37 | 38 | echo "'''Note:''' These statistics can be generated by running <code>php maintenance/language/transstat.php</code>.\n\n"; |
— | — | @@ -66,7 +67,7 @@ |
67 | 68 | $blue = '00'; |
68 | 69 | $color = $red . $green . $blue; |
69 | 70 | |
70 | | - $percent = parent::formatPercent( $subset, $total, $revert, $accuracy ); |
| 71 | + $percent = statsOutput::formatPercent( $subset, $total, $revert, $accuracy ); |
71 | 72 | return 'bgcolor="#' . $color . '"|' . $percent; |
72 | 73 | } |
73 | 74 | } |
Index: trunk/phase3/maintenance/language/languages.inc |
— | — | @@ -32,9 +32,6 @@ |
33 | 33 | */ |
34 | 34 | function __construct( $exif = true ) { |
35 | 35 | require( dirname(__FILE__) . '/messageTypes.inc' ); |
36 | | - |
37 | | - global $wgIgnoredMessages, $wgOptionalMessages, $wgEXIFMessages; |
38 | | - |
39 | 36 | $this->mIgnoredMessages = $wgIgnoredMessages; |
40 | 37 | if ( $exif ) { |
41 | 38 | $this->mOptionalMessages = array_merge( $wgOptionalMessages ); |