Index: trunk/phase3/maintenance/dumpUploads.php |
— | — | @@ -34,7 +34,7 @@ |
35 | 35 | } |
36 | 36 | |
37 | 37 | public function execute() { |
38 | | - global $IP, $wgUseSharedUploads; |
| 38 | + global $IP; |
39 | 39 | $this->mAction = 'fetchLocal'; |
40 | 40 | $this->mBasePath = $this->getOption( 'base', $IP ); |
41 | 41 | $this->mShared = false; |
Index: trunk/phase3/maintenance/generateSitemap.php |
— | — | @@ -141,7 +141,6 @@ |
142 | 142 | * Execute |
143 | 143 | */ |
144 | 144 | public function execute() { |
145 | | - global $wgScriptPath; |
146 | 145 | $this->setNamespacePriorities(); |
147 | 146 | $this->url_limit = 50000; |
148 | 147 | $this->size_limit = pow( 2, 20 ) * 10; |
Index: trunk/phase3/maintenance/updaters.inc |
— | — | @@ -270,7 +270,6 @@ |
271 | 271 | |
272 | 272 | function do_copy_newtalk_to_watchlist() { |
273 | 273 | global $wgDatabase; |
274 | | - global $wgCommandLineMode; # this needs to be saved while getID() and getName() are called |
275 | 274 | |
276 | 275 | $res = $wgDatabase->safeQuery( 'SELECT user_id, user_ip FROM !', |
277 | 276 | $wgDatabase->tableName( 'user_newtalk' ) ); |
— | — | @@ -937,7 +936,7 @@ |
938 | 937 | } |
939 | 938 | |
940 | 939 | function do_all_updates( $shared = false, $purge = true ) { |
941 | | - global $wgNewTables, $wgExtModifiedFields, $wgNewFields, $wgRenamedTables, $wgSharedDB, $wgSharedTables, $wgDatabase, $wgDBtype, $IP; |
| 940 | + global $wgSharedDB, $wgSharedTables, $wgDatabase, $wgDBtype; |
942 | 941 | |
943 | 942 | wfRunHooks( 'LoadExtensionSchemaUpdates' ); |
944 | 943 | |
— | — | @@ -1130,7 +1129,6 @@ |
1131 | 1130 | } |
1132 | 1131 | |
1133 | 1132 | function do_log_search_population() { |
1134 | | - global $wgDatabase; |
1135 | 1133 | if ( update_row_exists( 'populate log_search' ) ) { |
1136 | 1134 | wfOut( "...log_search table already populated.\n" ); |
1137 | 1135 | return; |
— | — | @@ -1308,7 +1306,7 @@ |
1309 | 1307 | } |
1310 | 1308 | |
1311 | 1309 | function do_postgres_updates() { |
1312 | | - global $wgDatabase, $wgVersion, $wgDBmwschema, $wgDBts2schema, $wgShowExceptionDetails, $wgDBuser; |
| 1310 | + global $wgDatabase, $wgDBmwschema, $wgDBts2schema, $wgShowExceptionDetails, $wgDBuser; |
1313 | 1311 | |
1314 | 1312 | # # Gather version numbers in case we need them |
1315 | 1313 | $version = $wgDatabase->getServerVersion(); # # long string |
Index: trunk/phase3/maintenance/addwiki.php |
— | — | @@ -44,7 +44,7 @@ |
45 | 45 | } |
46 | 46 | |
47 | 47 | public function execute() { |
48 | | - global $IP, $wgDefaultExternalStore, $wgNoDBParam, $wgPasswordSender; |
| 48 | + global $IP, $wgDefaultExternalStore, $wgNoDBParam; |
49 | 49 | |
50 | 50 | $wgNoDBParam = true; |
51 | 51 | $lang = $this->getArg( 0 ); |
Index: trunk/phase3/maintenance/Maintenance.php |
— | — | @@ -642,7 +642,7 @@ |
643 | 643 | */ |
644 | 644 | public function finalSetup() { |
645 | 645 | global $wgCommandLineMode, $wgShowSQLErrors; |
646 | | - global $wgProfiling, $IP, $wgDBadminuser, $wgDBadminpassword; |
| 646 | + global $wgProfiling, $wgDBadminuser, $wgDBadminpassword; |
647 | 647 | global $wgDBuser, $wgDBpassword, $wgDBservers, $wgLBFactoryConf; |
648 | 648 | |
649 | 649 | # Turn off output buffering again, it might have been turned on in the settings files |
Index: trunk/phase3/maintenance/benchmarkPurge.php |
— | — | @@ -31,7 +31,7 @@ |
32 | 32 | } |
33 | 33 | |
34 | 34 | public function execute() { |
35 | | - global $wgUseSquid; |
| 35 | + global $wgUseSquid, wgSquidServers; |
36 | 36 | if ( !$wgUseSquid ) { |
37 | 37 | $this->error( "Squid purge benchmark doesn't do much without squid support on." . true ); |
38 | 38 | } else { |
Index: trunk/phase3/maintenance/orphans.php |
— | — | @@ -133,7 +133,6 @@ |
134 | 134 | " ); |
135 | 135 | $widows = $dbw->numRows( $result ); |
136 | 136 | if ( $widows > 0 ) { |
137 | | - global $wgContLang; |
138 | 137 | $this->output( "$widows childless pages...\n" ); |
139 | 138 | $this->output( sprintf( "%10s %11s %2s %s\n", 'page_id', 'page_latest', 'ns', 'page_title' ) ); |
140 | 139 | foreach ( $result as $row ) { |
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, $IP; |
| 387 | + global $wgContLang; |
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,7 +75,6 @@ |
76 | 76 | |
77 | 77 | $foo = "wgAllMessages$languageCode"; |
78 | 78 | global $$foo; |
79 | | - global $wgSkinNamesEn; // potentially unused global declaration? |
80 | 79 | |
81 | 80 | // it might already be loaded in LocalSettings.php |
82 | 81 | if ( !isset( $$foo ) ) { |
Index: trunk/phase3/maintenance/deleteArchivedFiles.inc |
— | — | @@ -51,7 +51,7 @@ |
52 | 52 | } else { |
53 | 53 | $output->handleOutput( "Notice - file '$key' not found in group '$group'\n" ); |
54 | 54 | if ( $force ) { |
55 | | - $outpu->handleOutput( "Got --force, deleting DB entry\n" ); |
| 55 | + $ouput->handleOutput( "Got --force, deleting DB entry\n" ); |
56 | 56 | $dbw->query( "DELETE FROM $tbl_arch WHERE fa_id = $id" ); |
57 | 57 | } |
58 | 58 | } |