Prettify files tab of Special:Preferences a bit
authorRaimond Spekking <raymond@users.mediawiki.org>
Wed, 17 Dec 2008 15:01:06 +0000 (15:01 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Wed, 17 Dec 2008 15:01:06 +0000 (15:01 +0000)
includes/specials/SpecialPreferences.php

index 4859d00..3768055 100644 (file)
@@ -833,10 +833,6 @@ class PreferencesForm {
 
                # Files
                #
-               $wgOut->addHTML(
-                       "<fieldset>\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(
-                       "<div>" . Xml::label( wfMsg('imagemaxsize'), $imageSizeId ) . " " .
-                       Xml::openElement( 'select', array( 'name' => $imageSizeId, 'id' => $imageSizeId ) ) .
-                               $imageLimitOptions .
-                       Xml::closeElement( 'select' ) . "</div>\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(
-                       "<div>" . Xml::label( wfMsg('thumbsize'), $thumbSizeId ) . " " .
-                       Xml::openElement( 'select', array( 'name' => $thumbSizeId, 'id' => $thumbSizeId ) ) .
-                               $imageThumbOptions .
-                       Xml::closeElement( 'select' ) . "</div>\n"
+                       Xml::fieldset( wfMsg( 'files' ) ) . "\n" .
+                       Xml::openElement( 'table' ) .
+                               '<tr>
+                                       <td class="mw-label">' .
+                                               Xml::label( wfMsg( 'imagemaxsize' ), $imageSizeId ) .
+                                       '</td>
+                                       <td class="mw-input">' .
+                                               Xml::openElement( 'select', array( 'name' => $imageSizeId, 'id' => $imageSizeId ) ) .
+                                               $imageLimitOptions .
+                                               Xml::closeElement( 'select' ) .
+                                       '</td>
+                               </tr><tr>
+                                       <td class="mw-label">' .
+                                               Xml::label( wfMsg( 'thumbsize' ), $thumbSizeId ) .
+                                       '</td>
+                                       <td class="mw-input">' .
+                                               Xml::openElement( 'select', array( 'name' => $thumbSizeId, 'id' => $thumbSizeId ) ) .
+                                               $imageThumbOptions .
+                                               Xml::closeElement( 'select' ) .
+                                       '</td>
+                               </tr>' .
+                       Xml::closeElement( 'table' ) .
+                       Xml::closeElement( 'fieldset' )
                );
 
-               $wgOut->addHTML( "</fieldset>\n\n" );
-
                # Date format
                #
                # Date/Time