Index: branches/REL1_15/extensions/CentralAuth/SpecialGlobalGroupMembership.php |
— | — | @@ -15,6 +15,13 @@ |
16 | 16 | global $wgUser; |
17 | 17 | $this->mGlobalUser = CentralAuthUser::getInstance( $wgUser ); |
18 | 18 | } |
| 19 | + |
| 20 | + function getSuccessURL() { |
| 21 | + global $wgRequest; |
| 22 | + $knownWikis = $this->mGlobalUser->listAttached(); |
| 23 | + $title = $this->getTitle( $this->mTarget ); |
| 24 | + return $title->getFullURL( 'wpKnownWiki='.urlencode( $knownWikis[0] ) ); |
| 25 | + } |
19 | 26 | |
20 | 27 | /** |
21 | 28 | * Output a form to allow searching for a user |
Property changes on: branches/REL1_15/extensions/CentralAuth |
___________________________________________________________________ |
Name: svn:mergeinfo |
22 | 29 | + /trunk/extensions/CentralAuth:48993 |
Index: branches/REL1_15/phase3/includes/specials/SpecialUserrights.php |
— | — | @@ -105,7 +105,7 @@ |
106 | 106 | |
107 | 107 | global $wgOut; |
108 | 108 | |
109 | | - $url = $this->getTitle( $this->mTarget )->getFullURL(); |
| 109 | + $url = $this->getSuccessURL(); |
110 | 110 | $wgOut->redirect( $url ); |
111 | 111 | return; |
112 | 112 | } |
— | — | @@ -117,6 +117,10 @@ |
118 | 118 | $this->editUserGroupsForm( $this->mTarget ); |
119 | 119 | } |
120 | 120 | } |
| 121 | + |
| 122 | + function getSuccessURL() { |
| 123 | + return $this->getTitle( $this->mTarget )->getFullURL(); |
| 124 | + } |
121 | 125 | |
122 | 126 | /** |
123 | 127 | * Save user groups changes in the database. |
Property changes on: branches/REL1_15/phase3/includes/specials |
___________________________________________________________________ |
Name: svn:mergeinfo |
124 | 128 | + /trunk/phase3/includes/specials:48993,49051,49068,49086,49682,49775 |
/trunk/phase3/includes/specials/specials:48993 |
Property changes on: branches/REL1_15/phase3/includes |
___________________________________________________________________ |
Name: svn:mergeinfo |
125 | 129 | + /trunk/phase3/includes:49051,49068,49086,49682,49775 |
/trunk/phase3/includes/specials:48993 |