From: Andrew Garrett Date: Tue, 10 Mar 2009 03:29:45 +0000 (+0000) Subject: * (bug 17900) Fixed User Groups interface log display after saving groups. X-Git-Tag: 1.31.0-rc.0~42536 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=40ebc3aa780cf47f0d4ea3d734fc22937457a98e;p=lhc%2Fweb%2Fwiklou.git * (bug 17900) Fixed User Groups interface log display after saving groups. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 62440a60e3..acdbf206e0 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -257,6 +257,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 17751) The message for bad titles in WantedPages is now localized * (bug 17860) Moving a page in the "MediaWiki" namespace using SuppressRedirect no longer corrupts the message cache +* (bug 17900) Fixed User Groups interface log display after saving groups. == API changes in 1.15 == * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions diff --git a/includes/specials/SpecialUserrights.php b/includes/specials/SpecialUserrights.php index ce0097b222..5e824d001a 100644 --- a/includes/specials/SpecialUserrights.php +++ b/includes/specials/SpecialUserrights.php @@ -96,11 +96,18 @@ class UserrightsPage extends SpecialPage { // save settings if( $wgRequest->getCheck( 'saveusergroups' ) ) { $reason = $wgRequest->getVal( 'user-reason' ); - if( $wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ), $this->mTarget ) ) { + $tok = $wgRequest->getVal( 'wpEditToken' ); + if( $wgUser->matchEditToken( $tok, $this->mTarget ) ) { $this->saveUserGroups( $this->mTarget, $reason ); + + global $wgOut; + + $url = $this->getTitle( $this->mTarget )->getFullURL(); + $wgOut->redirect( $url ); + return; } } }