From: Raimond Spekking Date: Wed, 17 Dec 2008 15:01:06 +0000 (+0000) Subject: Prettify files tab of Special:Preferences a bit X-Git-Tag: 1.31.0-rc.0~43910 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=c058e3b3385f76f91a0d67ef3c4aba961a61cb34;p=lhc%2Fweb%2Fwiklou.git Prettify files tab of Special:Preferences a bit --- diff --git a/includes/specials/SpecialPreferences.php b/includes/specials/SpecialPreferences.php index 4859d00d27..3768055aba 100644 --- a/includes/specials/SpecialPreferences.php +++ b/includes/specials/SpecialPreferences.php @@ -833,10 +833,6 @@ class PreferencesForm { # Files # - $wgOut->addHTML( - "
\n" . Xml::element( 'legend', null, wfMsg( 'files' ) ) . "\n" - ); - $imageLimitOptions = null; foreach ( $wgImageLimits as $index => $limits ) { $selected = ($index == $this->mImageSize); @@ -844,14 +840,6 @@ class PreferencesForm { wfMsg('unit-pixel'), $index, $selected ); } - $imageSizeId = 'wpImageSize'; - $wgOut->addHTML( - "
" . Xml::label( wfMsg('imagemaxsize'), $imageSizeId ) . " " . - Xml::openElement( 'select', array( 'name' => $imageSizeId, 'id' => $imageSizeId ) ) . - $imageLimitOptions . - Xml::closeElement( 'select' ) . "
\n" - ); - $imageThumbOptions = null; foreach ( $wgThumbLimits as $index => $size ) { $selected = ($index == $this->mThumbSize); @@ -859,16 +847,34 @@ class PreferencesForm { $selected); } + $imageSizeId = 'wpImageSize'; $thumbSizeId = 'wpThumbSize'; $wgOut->addHTML( - "
" . Xml::label( wfMsg('thumbsize'), $thumbSizeId ) . " " . - Xml::openElement( 'select', array( 'name' => $thumbSizeId, 'id' => $thumbSizeId ) ) . - $imageThumbOptions . - Xml::closeElement( 'select' ) . "
\n" + Xml::fieldset( wfMsg( 'files' ) ) . "\n" . + Xml::openElement( 'table' ) . + ' + ' . + Xml::label( wfMsg( 'imagemaxsize' ), $imageSizeId ) . + ' + ' . + Xml::openElement( 'select', array( 'name' => $imageSizeId, 'id' => $imageSizeId ) ) . + $imageLimitOptions . + Xml::closeElement( 'select' ) . + ' + + ' . + Xml::label( wfMsg( 'thumbsize' ), $thumbSizeId ) . + ' + ' . + Xml::openElement( 'select', array( 'name' => $thumbSizeId, 'id' => $thumbSizeId ) ) . + $imageThumbOptions . + Xml::closeElement( 'select' ) . + ' + ' . + Xml::closeElement( 'table' ) . + Xml::closeElement( 'fieldset' ) ); - $wgOut->addHTML( "
\n\n" ); - # Date format # # Date/Time