* (bug 17900) Fixed User Groups interface log display after saving groups.
authorAndrew Garrett <werdna@users.mediawiki.org>
Tue, 10 Mar 2009 03:29:45 +0000 (03:29 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Tue, 10 Mar 2009 03:29:45 +0000 (03:29 +0000)
RELEASE-NOTES
includes/specials/SpecialUserrights.php

index 62440a6..acdbf20 100644 (file)
@@ -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
index ce0097b..5e824d0 100644 (file)
@@ -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;
                                }
                        }
                }