From c240735547fdc8dcc7e1301a2cb45d5ebc35d675 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Thu, 7 Apr 2005 15:35:45 +0000 Subject: [PATCH] * Now only displays the quickbar setting if the user is using the cologneblue or standard skin * Removed msg:qbsettingsnote (I'll remove it from the language files later) * Moved the imagemaxsize setting out of the RC tab into the misc tab. --- includes/SpecialPreferences.php | 40 ++++++++++++++++----------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index 07eef4ea94..1fd14965b6 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -561,18 +561,17 @@ class PreferencesForm {
".$prefs_help_realname.wfMsg('prefs-help-email').$prefs_help_email_enotif."
\n\n" ); - # Quickbar setting # - $wgOut->addHtml( "
\n$qb\n" ); - for ( $i = 0; $i < count( $qbs ); ++$i ) { - if ( $i == $this->mQuickbar ) { $checked = ' checked="checked"'; } - else { $checked = ""; } - $wgOut->addHTML( "
\n" ); + if ($this->mSkin == 'cologneblue' || $this->mSkin == 'standard') { + $wgOut->addHtml( "
\n$qb\n" ); + for ( $i = 0; $i < count( $qbs ); ++$i ) { + if ( $i == $this->mQuickbar ) { $checked = ' checked="checked"'; } + else { $checked = ""; } + $wgOut->addHTML( "
\n" ); + } + $wgOut->addHtml( "
\n\n" ); } - $wgOut->addHtml('
'.wfMsg('qbsettingsnote').'
'); - $wgOut->addHtml( "
\n\n" ); # Skin setting # @@ -594,8 +593,7 @@ class PreferencesForm { if( $skinkey == $wgDefaultSkin ) { $sn .= ' (' . wfMsg( 'default' ) . ')'; } - $wgOut->addHTML( "
\n" ); + $wgOut->addHTML( "
\n" ); } $wgOut->addHTML( "\n\n" ); @@ -659,15 +657,6 @@ class PreferencesForm { $this->getToggle( "hideminor" ) . $shownumberswatching . $this->getToggle( "usenewrc" ) . $this->getToggle('showupdated', wfMsg('updatedmarker')) . "
-
-
@@ -686,6 +675,17 @@ class PreferencesForm { # Various checkbox options # $wgOut->addHTML("
".wfMsg('prefs-misc').""); + + $wgOut->addHTML( '
" ); + + foreach ( $togs as $tname ) { if( !array_key_exists( $tname, $this->mUsedToggles ) ) { $wgOut->addHTML( $this->getToggle( $tname ) ); -- 2.20.1