r48253 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48252‎ | r48253 | r48254 >
Date:03:29, 10 March 2009
Author:werdna
Status:ok
Tags:
Comment:
* (bug 17900) Fixed User Groups interface log display after saving groups.
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/specials/SpecialUserrights.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUserrights.php
@@ -96,11 +96,18 @@
9797 // save settings
9898 if( $wgRequest->getCheck( 'saveusergroups' ) ) {
9999 $reason = $wgRequest->getVal( 'user-reason' );
100 - if( $wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ), $this->mTarget ) ) {
 100+ $tok = $wgRequest->getVal( 'wpEditToken' );
 101+ if( $wgUser->matchEditToken( $tok, $this->mTarget ) ) {
101102 $this->saveUserGroups(
102103 $this->mTarget,
103104 $reason
104105 );
 106+
 107+ global $wgOut;
 108+
 109+ $url = $this->getTitle( $this->mTarget )->getFullURL();
 110+ $wgOut->redirect( $url );
 111+ return;
105112 }
106113 }
107114 }
Index: trunk/phase3/RELEASE-NOTES
@@ -257,6 +257,7 @@
258258 * (bug 17751) The message for bad titles in WantedPages is now localized
259259 * (bug 17860) Moving a page in the "MediaWiki" namespace using SuppressRedirect
260260 no longer corrupts the message cache
 261+* (bug 17900) Fixed User Groups interface log display after saving groups.
261262
262263 == API changes in 1.15 ==
263264 * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions

Status & tagging log