Index: trunk/phase3/includes/specials/SpecialPreferences.php |
— | — | @@ -443,11 +443,12 @@ |
444 | 444 | * @access private |
445 | 445 | */ |
446 | 446 | function restorePreferences() { |
447 | | - global $wgUser; |
| 447 | + global $wgUser, $wgOut; |
448 | 448 | $wgUser->restoreOptions(); |
449 | 449 | $wgUser->setCookies(); |
450 | 450 | $wgUser->saveSettings(); |
451 | | - $this->mainPrefsForm( 'success' ); |
| 451 | + $title = SpecialPage::getTitleFor( 'Preferences' ); |
| 452 | + $wgOut->redirect( $title->getFullURL( 'success' ) ); |
452 | 453 | } |
453 | 454 | |
454 | 455 | /** |