X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialPreferences.php;h=7371da74906659f04ceb1982d3affb46c4a2092d;hb=a77c09c03baf8ee1dd7527db4c20c5be2cd2c298;hp=4cfd445f9f423b5f621ec0517ce4cbc7dddacdf0;hpb=adbadb9ee62284d70d9e7763379ab3b4eb6bde6f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialPreferences.php b/includes/specials/SpecialPreferences.php index 4cfd445f9f..7371da7490 100644 --- a/includes/specials/SpecialPreferences.php +++ b/includes/specials/SpecialPreferences.php @@ -55,6 +55,8 @@ class SpecialPreferences extends SpecialPage { ); } + $this->addHelpLink( 'Help:Preferences' ); + $htmlForm = Preferences::getFormObject( $this->getUser(), $this->getContext() ); $htmlForm->setSubmitCallback( array( 'Preferences', 'tryUISubmit' ) ); @@ -73,6 +75,7 @@ class SpecialPreferences extends SpecialPage { $htmlForm = new HTMLForm( array(), $context, 'prefs-restore' ); $htmlForm->setSubmitTextMsg( 'restoreprefs' ); + $htmlForm->setSubmitDestructive(); $htmlForm->setSubmitCallback( array( $this, 'submitReset' ) ); $htmlForm->suppressReset();