r45602 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45601‎ | r45602 | r45603 >
Date:14:26, 9 January 2009
Author:aaron
Status:ok
Tags:
Comment:
Fix lag for 'restore' button
Modified paths:
  • /trunk/phase3/includes/specials/SpecialPreferences.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialPreferences.php
@@ -443,11 +443,12 @@
444444 * @access private
445445 */
446446 function restorePreferences() {
447 - global $wgUser;
 447+ global $wgUser, $wgOut;
448448 $wgUser->restoreOptions();
449449 $wgUser->setCookies();
450450 $wgUser->saveSettings();
451 - $this->mainPrefsForm( 'success' );
 451+ $title = SpecialPage::getTitleFor( 'Preferences' );
 452+ $wgOut->redirect( $title->getFullURL( 'success' ) );
452453 }
453454
454455 /**

Status & tagging log