Index: trunk/phase3/maintenance/changePassword.php |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | $optionsWithArgs = array( 'user', 'password' ); |
15 | 15 | require_once 'commandLine.inc'; |
16 | 16 | |
17 | | -$USAGE = |
| 17 | +$USAGE = |
18 | 18 | "Usage: php changePassword.php [--user=user --password=password | --help]\n" . |
19 | 19 | "\toptions:\n" . |
20 | 20 | "\t\t--help show this message\n" . |
— | — | @@ -50,8 +50,6 @@ |
51 | 51 | } |
52 | 52 | |
53 | 53 | function main() { |
54 | | - $fname = 'ChangePassword::main'; |
55 | | - |
56 | 54 | $this->user->setPassword( $this->password ); |
57 | 55 | $this->user->saveSettings(); |
58 | 56 | } |
Index: trunk/phase3/maintenance/language/dumpMessages.php |
— | — | @@ -7,11 +7,9 @@ |
8 | 8 | |
9 | 9 | /** */ |
10 | 10 | require_once( dirname(__FILE__).'/../commandLine.inc' ); |
11 | | -$wgMessageCache->disableTransform(); |
12 | 11 | $messages = array(); |
13 | 12 | $wgEnglishMessages = array_keys( Language::getMessagesFor( 'en' ) ); |
14 | | -foreach ( $wgEnglishMessages as $key ) |
15 | | -{ |
| 13 | +foreach ( $wgEnglishMessages as $key ) { |
16 | 14 | $messages[$key] = wfMsg( $key ); |
17 | 15 | } |
18 | 16 | print "MediaWiki $wgVersion language file\n"; |