From: Brion Vibber Date: Fri, 28 Dec 2007 02:22:20 +0000 (+0000) Subject: * (bug 12416) Fix password setting for createAndPromote.php X-Git-Tag: 1.31.0-rc.0~50251 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=f9d0879bf4f696d784265bb50029134f6e7e7eed;p=lhc%2Fweb%2Fwiklou.git * (bug 12416) Fix password setting for createAndPromote.php --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9a9b2b8b77..6a43665a5e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -269,6 +269,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 12380) Bot-friendly EditPage::spamPage * (bug 8066) Spaces can't be entered in special page aliases * Hide undo link if user can't edit article +* (bug 12416) Fix password setting for createAndPromote.php + == Parser changes in 1.12 == diff --git a/maintenance/createAndPromote.php b/maintenance/createAndPromote.php index af4a1dab99..0d30fe73c5 100644 --- a/maintenance/createAndPromote.php +++ b/maintenance/createAndPromote.php @@ -38,7 +38,7 @@ if( !is_object( $user ) ) { # Insert the account into the database $user->addToDatabase(); $user->setPassword( $password ); -$user->setToken(); +$user->saveSettings(); # Promote user $user->addGroup( 'sysop' );