Index: trunk/phase3/maintenance/renameDbPrefix.php |
— | — | @@ -35,6 +35,8 @@ |
36 | 36 | } |
37 | 37 | |
38 | 38 | public function execute() { |
| 39 | + global $wgDBname; |
| 40 | + |
39 | 41 | // Allow for no old prefix |
40 | 42 | if ( $this->getOption( 'old', 0 ) === '0' ) { |
41 | 43 | $old = ''; |
— | — | @@ -82,4 +84,4 @@ |
83 | 85 | } |
84 | 86 | |
85 | 87 | $maintClass = "RenameDbPrefix"; |
86 | | -require_once( DO_MAINTENANCE ); |
\ No newline at end of file |
| 88 | +require_once( DO_MAINTENANCE ); |
Index: trunk/phase3/maintenance/cleanupSpam.php |
— | — | @@ -31,7 +31,7 @@ |
32 | 32 | } |
33 | 33 | |
34 | 34 | public function execute() { |
35 | | - global $wgLocalDatabases; |
| 35 | + global $wgLocalDatabases, $wgUser; |
36 | 36 | |
37 | 37 | $username = wfMsg( 'spambot_username' ); |
38 | 38 | $wgUser = User::newFromName( $username ); |
Index: trunk/phase3/maintenance/language/dumpMessages.php |
— | — | @@ -31,11 +31,11 @@ |
32 | 32 | } |
33 | 33 | |
34 | 34 | public function execute() { |
| 35 | + global $wgVersion; |
35 | 36 | $messages = array(); |
36 | 37 | foreach ( array_keys( Language::getMessagesFor( 'en' ) ) as $key ) { |
37 | 38 | $messages[$key] = wfMsg( $key ); |
38 | 39 | } |
39 | | - global $wgVersion; |
40 | 40 | $this->output( "MediaWiki $wgVersion language file\n" ); |
41 | 41 | $this->output( serialize( $messages ) ); |
42 | 42 | } |