* Small cleanups
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sun, 1 Feb 2009 19:01:10 +0000 (19:01 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sun, 1 Feb 2009 19:01:10 +0000 (19:01 +0000)
maintenance/changePassword.php
maintenance/language/dumpMessages.php

index d437037..0fe8c0b 100644 (file)
@@ -13,7 +13,7 @@
 $optionsWithArgs = array( 'user', 'password' );
 require_once 'commandLine.inc';
 
-$USAGE = 
+$USAGE =
        "Usage: php changePassword.php [--user=user --password=password | --help]\n" .
        "\toptions:\n" .
        "\t\t--help      show this message\n" .
@@ -50,8 +50,6 @@ class ChangePassword {
        }
 
        function main() {
-               $fname = 'ChangePassword::main';
-
                $this->user->setPassword( $this->password );
                $this->user->saveSettings();
        }
index 5669e58..35aeeb7 100644 (file)
@@ -7,11 +7,9 @@
 
 /** */
 require_once( dirname(__FILE__).'/../commandLine.inc' );
-$wgMessageCache->disableTransform();
 $messages = array();
 $wgEnglishMessages = array_keys( Language::getMessagesFor( 'en' ) );
-foreach ( $wgEnglishMessages as $key )
-{
+foreach ( $wgEnglishMessages as $key ) {
        $messages[$key] = wfMsg( $key );
 }
 print "MediaWiki $wgVersion language file\n";