Index: trunk/phase3/includes/SpecialPreferences.php |
— | — | @@ -303,9 +303,9 @@ |
304 | 304 | # Only count up to count($wgValidSkinNames) rather than |
305 | 305 | # count($skins), to allow global disabling of experimental |
306 | 306 | # skins. |
307 | | - for ( $i = 0; $i < count( $wgValidSkinNames ); ++$i ) { |
| 307 | + foreach ($wgValidSkinNames as $i => $skinname ) { |
308 | 308 | if ( $i == $wpSkin ) { |
309 | | - $checked = " checked"; |
| 309 | + $checked = ' checked="checked"'; |
310 | 310 | } else { |
311 | 311 | $checked = ""; |
312 | 312 | } |