$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" .
}
function main() {
- $fname = 'ChangePassword::main';
-
$this->user->setPassword( $this->password );
$this->user->saveSettings();
}
/** */
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";