trailling whitespace for underline-always. Patch by Mormegil on IRC. Quotes
authorAntoine Musso <hashar@users.mediawiki.org>
Fri, 21 Oct 2005 20:44:59 +0000 (20:44 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Fri, 21 Oct 2005 20:44:59 +0000 (20:44 +0000)
includes/SpecialPreferences.php

index 722cd94..ea453bd 100644 (file)
@@ -815,14 +815,14 @@ class PreferencesForm {
                );
                $msgUnderline = htmlspecialchars( wfMsg ( 'tog-underline' ) );
                $msgUnderlinenever = htmlspecialchars( wfMsg ( 'underline-never' ) );
-               $msgUnderlinealways = htmlspecialchars( wfMsg ( 'underline-always ' ) );
+               $msgUnderlinealways = htmlspecialchars( wfMsg ( 'underline-always' ) );
                $msgUnderlinedefault = htmlspecialchars( wfMsg ( 'underline-default' ) );
                $uopt = $wgUser->getOption("underline");
-               $s0 = $uopt == 0 ? " selected=\"selected\"" : "";
-               $s1 = $uopt == 1 ? " selected=\"selected\"" : "";
-               $s2 = $uopt == 2 ? " selected=\"selected\"" : "";
+               $s0 = $uopt == 0 ? ' selected="selected"' : '';
+               $s1 = $uopt == 1 ? ' selected="selected"' : '';
+               $s2 = $uopt == 2 ? ' selected="selected"' : '';
                $wgOut->addHTML("
-<div class='toggle'><label for='wpOpunderline'>$msgUnderline</label> 
+<div class='toggle'><label for='wpOpunderline'>$msgUnderline</label>
 <select name='wpOpunderline' id='wpOpunderline'>
 <option value=\"0\"$s0>$msgUnderlinenever</option>
 <option value=\"1\"$s1>$msgUnderlinealways</option>