Follow-up to r45761 "* Convert prefsubmit div into a table to fix tab indexing"
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 20 Jan 2009 21:52:02 +0000 (21:52 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 20 Jan 2009 21:52:02 +0000 (21:52 +0000)
Checking contlang RTL so we can left-align when necessary.

includes/specials/SpecialPreferences.php

index cc61775..b57cc68 100644 (file)
@@ -1212,12 +1212,13 @@ class PreferencesForm {
 
                $token = htmlspecialchars( $wgUser->editToken() );
                $skin = $wgUser->getSkin();
+               $rtl = $wgContLang->isRTL() ? 'left' : 'right';
                $wgOut->addHTML( "
        <table id='prefsubmit' cellpadding='0' width='100%' style='background:none;'><tr>
                <td><input type='submit' name='wpSaveprefs' class='btnSavePrefs' value=\"" . wfMsgHtml( 'saveprefs' ) . 
                        '"'.$skin->tooltipAndAccesskey('save')." />
                <input type='submit' name='wpReset' value=\"" . wfMsgHtml( 'resetprefs' ) . "\" /></td>
-               <td align='right'><input type='submit' name='wpRestore' value=\"" . wfMsgHtml( 'restoreprefs' ) . "\" /></td>
+               <td align='$rtl'><input type='submit' name='wpRestore' value=\"" . wfMsgHtml( 'restoreprefs' ) . "\" /></td>
        </tr></table>
 
        <input type='hidden' name='wpEditToken' value=\"{$token}\" />