r67545 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67544‎ | r67545 | r67546 >
Date:16:33, 7 June 2010
Author:demon
Status:ok
Tags:
Comment:
Save settings after adding the groups, or the groups don't stick
Modified paths:
  • /trunk/phase3/includes/installer/Installer.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/installer/Installer.php
@@ -900,9 +900,9 @@
901901 } catch( PasswordError $pwe ) {
902902 return Status::newFatal( 'config-admin-error-password', $name, $pwe->getMessage() );
903903 }
904 - $user->saveSettings();
905904 $user->addGroup( 'sysop' );
906905 $user->addGroup( 'bureaucrat' );
 906+ $user->saveSettings();
907907 }
908908 return Status::newGood();
909909 }

Status & tagging log