Index: trunk/phase3/includes/specials/SpecialPreferences.php |
— | — | @@ -833,10 +833,6 @@ |
834 | 834 | |
835 | 835 | # Files |
836 | 836 | # |
837 | | - $wgOut->addHTML( |
838 | | - "<fieldset>\n" . Xml::element( 'legend', null, wfMsg( 'files' ) ) . "\n" |
839 | | - ); |
840 | | - |
841 | 837 | $imageLimitOptions = null; |
842 | 838 | foreach ( $wgImageLimits as $index => $limits ) { |
843 | 839 | $selected = ($index == $this->mImageSize); |
— | — | @@ -844,14 +840,6 @@ |
845 | 841 | wfMsg('unit-pixel'), $index, $selected ); |
846 | 842 | } |
847 | 843 | |
848 | | - $imageSizeId = 'wpImageSize'; |
849 | | - $wgOut->addHTML( |
850 | | - "<div>" . Xml::label( wfMsg('imagemaxsize'), $imageSizeId ) . " " . |
851 | | - Xml::openElement( 'select', array( 'name' => $imageSizeId, 'id' => $imageSizeId ) ) . |
852 | | - $imageLimitOptions . |
853 | | - Xml::closeElement( 'select' ) . "</div>\n" |
854 | | - ); |
855 | | - |
856 | 844 | $imageThumbOptions = null; |
857 | 845 | foreach ( $wgThumbLimits as $index => $size ) { |
858 | 846 | $selected = ($index == $this->mThumbSize); |
— | — | @@ -859,16 +847,34 @@ |
860 | 848 | $selected); |
861 | 849 | } |
862 | 850 | |
| 851 | + $imageSizeId = 'wpImageSize'; |
863 | 852 | $thumbSizeId = 'wpThumbSize'; |
864 | 853 | $wgOut->addHTML( |
865 | | - "<div>" . Xml::label( wfMsg('thumbsize'), $thumbSizeId ) . " " . |
866 | | - Xml::openElement( 'select', array( 'name' => $thumbSizeId, 'id' => $thumbSizeId ) ) . |
867 | | - $imageThumbOptions . |
868 | | - Xml::closeElement( 'select' ) . "</div>\n" |
| 854 | + Xml::fieldset( wfMsg( 'files' ) ) . "\n" . |
| 855 | + Xml::openElement( 'table' ) . |
| 856 | + '<tr> |
| 857 | + <td class="mw-label">' . |
| 858 | + Xml::label( wfMsg( 'imagemaxsize' ), $imageSizeId ) . |
| 859 | + '</td> |
| 860 | + <td class="mw-input">' . |
| 861 | + Xml::openElement( 'select', array( 'name' => $imageSizeId, 'id' => $imageSizeId ) ) . |
| 862 | + $imageLimitOptions . |
| 863 | + Xml::closeElement( 'select' ) . |
| 864 | + '</td> |
| 865 | + </tr><tr> |
| 866 | + <td class="mw-label">' . |
| 867 | + Xml::label( wfMsg( 'thumbsize' ), $thumbSizeId ) . |
| 868 | + '</td> |
| 869 | + <td class="mw-input">' . |
| 870 | + Xml::openElement( 'select', array( 'name' => $thumbSizeId, 'id' => $thumbSizeId ) ) . |
| 871 | + $imageThumbOptions . |
| 872 | + Xml::closeElement( 'select' ) . |
| 873 | + '</td> |
| 874 | + </tr>' . |
| 875 | + Xml::closeElement( 'table' ) . |
| 876 | + Xml::closeElement( 'fieldset' ) |
869 | 877 | ); |
870 | 878 | |
871 | | - $wgOut->addHTML( "</fieldset>\n\n" ); |
872 | | - |
873 | 879 | # Date format |
874 | 880 | # |
875 | 881 | # Date/Time |