Index: branches/change-tagging/extensions/AbuseFilter/SpecialAbuseFilter.php |
— | — | @@ -32,6 +32,11 @@ |
33 | 33 | $this->displayRestrictionError(); |
34 | 34 | return; |
35 | 35 | } |
| 36 | + |
| 37 | + if ( $wgRequest->getVal( 'result' ) == 'success' ) { |
| 38 | + $wgOut->setSubtitle( wfMsg( 'abusefilter-edit-done-subtitle' ) ); |
| 39 | + $wgOut->wrapWikiMsg( '<p class="success">$1</p>', array('abusefilter-edit-done', $wgRequest->getVal( 'changedfilter' ) ) ); |
| 40 | + } |
36 | 41 | |
37 | 42 | $this->mSkin = $wgUser->getSkin(); |
38 | 43 | |
— | — | @@ -318,8 +323,7 @@ |
319 | 324 | |
320 | 325 | global $wgOut; |
321 | 326 | |
322 | | - $wgOut->setSubtitle( wfMsg('abusefilter-edit-done-subtitle' ) ); |
323 | | - return wfMsgExt( 'abusefilter-edit-done', array( 'parse' ) ); |
| 327 | + $wgOut->redirect( $this->getTitle()->getLocalURL( 'result=success&changedfilter='.$new_id ) ); |
324 | 328 | } else { |
325 | 329 | return $this->buildFilterEditor( null, $filter, $history_id ); |
326 | 330 | } |
Index: branches/change-tagging/extensions/AbuseFilter/AbuseFilter.i18n.php |
— | — | @@ -159,7 +159,7 @@ |
160 | 160 | 'abusefilter-edit-denied' => "You may not view details of this filter, because it is hidden from public view", |
161 | 161 | 'abusefilter-edit-main' => 'Filter parameters', |
162 | 162 | 'abusefilter-edit-done-subtitle' => 'Filter edited', |
163 | | - 'abusefilter-edit-done' => "You have successfully saved your changes to the filter.\n\n[[Special:AbuseFilter|Return]]", |
| 163 | + 'abusefilter-edit-done' => "You have successfully saved your changes to filter $1.", |
164 | 164 | 'abusefilter-edit-badsyntax' => "There is a syntax error in the filter you specified. The output from the parser was: <pre>$1</pre>", |
165 | 165 | 'abusefilter-edit-viewhistory' => "View this filter's history", |
166 | 166 | 'abusefilter-edit-history' => 'History', |