Cleaner HTML output
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 6 Jan 2007 15:19:14 +0000 (15:19 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 6 Jan 2007 15:19:14 +0000 (15:19 +0000)
includes/Pager.php
includes/SpecialImagelist.php

index b97462d..0987cc0 100644 (file)
@@ -487,7 +487,7 @@ abstract class TablePager extends IndexPager {
        }
 
        function getEndBody() {
-               return '</tbody></table>';
+               return "</tbody></table>\n";
        }
 
        function getEmptyBody() {
@@ -553,7 +553,7 @@ abstract class TablePager extends IndexPager {
                        'next' =>  $wgContLang->isRTL() ? 'arrow_disabled_left_25.png' : 'arrow_disabled_right_25.png',
                        'last' =>  $wgContLang->isRTL() ? 'arrow_disabled_first_25.png' : 'arrow_disabled_last_25.png',
                );
-                       
+
                $linkTexts = array();
                $disabledTexts = array();
                foreach ( $labels as $type => $label ) {
@@ -564,12 +564,12 @@ abstract class TablePager extends IndexPager {
                $links = $this->getPagingLinks( $linkTexts, $disabledTexts );
 
                $navClass = htmlspecialchars( $this->getNavClass() );
-               $s = "<table class=\"$navClass\" align=\"center\" cellpadding=\"3\"><tr>";
+               $s = "<table class=\"$navClass\" align=\"center\" cellpadding=\"3\"><tr>\n";
                $cellAttrs = 'valign="top" align="center" width="' . 100 / count( $links ) . '%"';
                foreach ( $labels as $type => $label ) {
                        $s .= "<td $cellAttrs>{$links[$type]}</td>\n";
                }
-               $s .= '</tr></table>';
+               $s .= "</tr></table>\n";
                return $s;
        }
 
index 69004be..31f0484 100644 (file)
@@ -16,11 +16,11 @@ function wfSpecialImagelist() {
        $limit = $pager->getForm();
        $body = $pager->getBody();
        $nav = $pager->getNavigationBar();
-       $wgOut->addHTML( "
+       $wgOut->addHTML(
                $limit
-               <br/>
-               $body
-               $nav" );
+               . '<br/>'
+               $body
+               . $nav );
 }
 
 class ImageListPager extends TablePager {