From: Gabriel Wicke Date: Fri, 2 Apr 2004 09:46:59 +0000 (+0000) Subject: xhtml tweaks, non-minimized values for checked X-Git-Tag: 1.3.0beta1~647 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=d0bbc8e984e92cdaa71262f19584197083d46f8d;p=lhc%2Fweb%2Fwiklou.git xhtml tweaks, non-minimized values for checked --- diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index 20053c290f..abd63f1a08 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -222,7 +222,7 @@ class PreferencesForm { if ( $i >= 0 ) { $checked = ""; if ( $this->mSearchNs[$i] ) { - $checked = " checked"; + $checked = ' checked="checked"'; } $name = str_replace( "_", " ", $namespaces[$i] ); if ( "" == $name ) { @@ -303,7 +303,7 @@ class PreferencesForm { # Quickbar setting # for ( $i = 0; $i < count( $qbs ); ++$i ) { - if ( $i == $this->mQuickbar ) { $checked = " checked"; } + if ( $i == $this->mQuickbar ) { $checked = ' checked="checked"'; } else { $checked = ""; } $wgOut->addHTML( "
\n" ); @@ -328,7 +328,7 @@ class PreferencesForm { # $skinNames (skins is all skin names from Language.php) foreach ($wgValidSkinNames as $skinkey => $skinname ) { if ( $skinkey == $this->mSkin ) { - $checked = ' checked'; + $checked = ' checked="checked"'; } else { $checked = ""; } @@ -346,7 +346,7 @@ class PreferencesForm { $wgOut->addHTML(""); foreach ( $togs as $tname => $ttext ) { if ( 1 == $wgUser->getOption( $tname ) ) { - $checked = " checked"; + $checked = ' checked="checked"'; } else { $checked = ""; } @@ -359,7 +359,7 @@ class PreferencesForm { # $wgOut->addHTML( "
$math:
\n" ); for ( $i = 0; $i < count( $mathopts ); ++$i ) { - if ( $i == $this->mMath ) { $checked = " checked"; } + if ( $i == $this->mMath ) { $checked = ' checked="checked"'; } else { $checked = ""; } $wgOut->addHTML( "
\n" ); @@ -372,7 +372,7 @@ class PreferencesForm { $wgOut->addHTML( "
$dateFormat:
" ); for ( $i = 0; $i < count( $dateopts ); ++$i) { if ( $i == $this->mDate ) { - $checked = " checked"; + $checked = ' checked="checked"'; } else { $checked = ""; } @@ -398,7 +398,7 @@ class PreferencesForm { # $this->mUserEmail = wfEscapeHTML( $this->mUserEmail ); $this->mNick = wfEscapeHTML( $this->mNick ); - if ( $this->mEmailFlag ) { $emfc = "checked"; } + if ( $this->mEmailFlag ) { $emfc = 'checked="checked"'; } else { $emfc = ""; } $ps = $this->namespacesCheckboxes();