From f9d0879bf4f696d784265bb50029134f6e7e7eed Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 28 Dec 2007 02:22:20 +0000 Subject: [PATCH] * (bug 12416) Fix password setting for createAndPromote.php --- RELEASE-NOTES | 2 ++ maintenance/createAndPromote.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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' ); -- 2.20.1