From 008fc55b983eb07abbef57694f29717871aa231e Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Fri, 26 Mar 2004 22:27:43 +0000 Subject: [PATCH] skin names as associative array --- includes/SpecialPreferences.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index 395ef77ee7..391c23bf3c 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -303,9 +303,9 @@ value=\"$i\"$checked> {$qbs[$i]}
\n" ); # Only count up to count($wgValidSkinNames) rather than # count($skins), to allow global disabling of experimental # skins. - for ( $i = 0; $i < count( $wgValidSkinNames ); ++$i ) { + foreach ($wgValidSkinNames as $i => $skinname ) { if ( $i == $wpSkin ) { - $checked = " checked"; + $checked = ' checked="checked"'; } else { $checked = ""; } -- 2.20.1