* (bug 7859) Update Kazakh translations
[lhc/web/wiklou.git] / maintenance / changePassword.php
index 9bb0bab..8291341 100644 (file)
@@ -2,8 +2,7 @@
 /**
  * Change the password of a given user
  *
- * @package MediaWiki
- * @subpackage Maintenance
+ * @addtogroup Maintenance
  *
  * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
  * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason
@@ -18,7 +17,7 @@ class ChangePassword {
                $this->user = User::newFromName( $user );
                $this->password = $password;
 
-               $this->dbw =& wfGetDB( DB_MASTER );
+               $this->dbw = wfGetDB( DB_MASTER );
        }
 
        function main() {
@@ -40,7 +39,7 @@ $optionsWithArgs = array( 'user', 'password' );
 require_once 'commandLine.inc';
 
 if( in_array( '--help', $argv ) )
-       die(
+       wfDie(
                "Usage: php changePassword.php [--user=user --password=password | --help]\n" .
                "\toptions:\n" .
                "\t\t--help\tshow this message\n" .
@@ -50,3 +49,4 @@ if( in_array( '--help', $argv ) )
 
 $cp = new ChangePassword( @$options['user'], @$options['password'] );
 $cp->main();
+?>