'options' => $tzOptions,
'default' => $tzSetting,
'size' => 20,
+ 'maxlength' => 6,
'section' => 'rendering/timeoffset',
);
}
*/
function getButtons() {
global $wgUseMediaWikiUIEverywhere;
- $attrs = $wgUseMediaWikiUIEverywhere ? array( 'class' => 'mw-ui-button mw-ui-quiet' ) : array();
+
+ $attrs = array( 'id' => 'mw-prefs-restoreprefs' );
+ if ( $wgUseMediaWikiUIEverywhere ) {
+ $attrs['class'] = 'mw-ui-button mw-ui-quiet';
+ }
if ( !$this->getModifiedUser()->isAllowedAny( 'editmyprivateinfo', 'editmyoptions' ) ) {
return '';