From 2cc7c6583ff99abdd2e787720870848103e19231 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 11 Nov 2003 11:23:42 +0000 Subject: [PATCH] Disabling experimental extra skins --- includes/SpecialPreferences.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index 399aa1bc7f..822be3a02e 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -195,7 +195,7 @@ function wfSpecialPreferences() global $wpQuickbar, $wpOldpass, $wpNewpass, $wpRetype; global $wpSkin, $wpMath, $wpDate, $wpEmail, $wpEmailFlag, $wpNick, $wpSearch, $wpRecent; global $wpRows, $wpCols, $wpSaveprefs, $wpReset, $wpHourDiff; - global $wpSearchLines, $wpSearchChars, $wpStubs; + global $wpSearchLines, $wpSearchChars, $wpStubs, $wgValidSkinNames; $wgOut->setPageTitle( wfMsg( "preferences" ) ); $wgOut->setArticleFlag( false ); @@ -273,9 +273,15 @@ value=\"$i\"$checked> {$qbs[$i]}
\n" ); # Skin setting # $wgOut->addHTML( "$sk:
\n" ); - for ( $i = 0; $i < count( $skins ); ++$i ) { - if ( $i == $wpSkin ) { $checked = " checked"; } - else { $checked = ""; } + # Only count up to count($wgValidSkinNames) rather than + # count($skins), to allow global disabling of experimental + # skins. + for ( $i = 0; $i < count( $wgValidSkinNames ); ++$i ) { + if ( $i == $wpSkin ) { + $checked = " checked"; + } else { + $checked = ""; + } $wgOut->addHTML( "
\n" ); } -- 2.20.1