Index: trunk/phase3/includes/specials/SpecialPreferences.php |
— | — | @@ -69,7 +69,7 @@ |
70 | 70 | |
71 | 71 | $htmlForm = new HTMLForm( array(), $this->getContext(), 'prefs-restore' ); |
72 | 72 | |
73 | | - $htmlForm->setSubmitText( wfMsg( 'restoreprefs' ) ); |
| 73 | + $htmlForm->setSubmitTextMsg( 'restoreprefs' ); |
74 | 74 | $htmlForm->setTitle( $this->getTitle( 'reset' ) ); |
75 | 75 | $htmlForm->setSubmitCallback( array( $this, 'submitReset' ) ); |
76 | 76 | $htmlForm->suppressReset(); |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | $user->resetOptions(); |
84 | 84 | $user->saveSettings(); |
85 | 85 | |
86 | | - $url = SpecialPage::getTitleFor( 'Preferences' )->getFullURL( 'success' ); |
| 86 | + $url = $this->getTitle()->getFullURL( 'success' ); |
87 | 87 | |
88 | 88 | $this->getOutput()->redirect( $url ); |
89 | 89 | |