X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FPreferences.php;h=93844f6185cc49f8d7cd716bac8c0a0458076631;hb=17cc78767ab099f9d00d267f230be81c202b1795;hp=8fa2f9addaa4d63ab23ea72edd6de1d02799fded;hpb=9282ed3eeebaf238a6024e186a1fc5a6dc090849;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Preferences.php b/includes/Preferences.php index 8fa2f9adda..93844f6185 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -706,7 +706,6 @@ class Preferences { 'options' => $tzOptions, 'default' => $tzSetting, 'size' => 20, - 'maxlength' => 6, 'section' => 'rendering/timeoffset', ); } @@ -1518,12 +1517,8 @@ class PreferencesForm extends HTMLForm { * @return string */ function getButtons() { - global $wgUseMediaWikiUIEverywhere; $attrs = array( 'id' => 'mw-prefs-restoreprefs' ); - if ( $wgUseMediaWikiUIEverywhere ) { - $attrs['class'] = 'mw-ui-button mw-ui-quiet'; - } if ( !$this->getModifiedUser()->isAllowedAny( 'editmyprivateinfo', 'editmyoptions' ) ) { return ''; @@ -1535,7 +1530,7 @@ class PreferencesForm extends HTMLForm { $t = SpecialPage::getTitleFor( 'Preferences', 'reset' ); $html .= "\n" . Linker::link( $t, $this->msg( 'restoreprefs' )->escaped(), - $attrs ); + Html::buttonAttributes( $attrs, array( 'mw-ui-quiet' ) ) ); $html = Xml::tags( 'div', array( 'class' => 'mw-prefs-buttons' ), $html ); }