From e7213578ce18589afba5d70f5076bc9490524748 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sat, 6 Jan 2007 15:19:14 +0000 Subject: [PATCH] Cleaner HTML output --- includes/Pager.php | 8 ++++---- includes/SpecialImagelist.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/includes/Pager.php b/includes/Pager.php index b97462d989..0987cc066c 100644 --- a/includes/Pager.php +++ b/includes/Pager.php @@ -487,7 +487,7 @@ abstract class TablePager extends IndexPager { } function getEndBody() { - return ''; + return "\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 = ""; + $s = "
\n"; $cellAttrs = 'valign="top" align="center" width="' . 100 / count( $links ) . '%"'; foreach ( $labels as $type => $label ) { $s .= "\n"; } - $s .= '
{$links[$type]}
'; + $s .= "\n"; return $s; } diff --git a/includes/SpecialImagelist.php b/includes/SpecialImagelist.php index 69004be049..31f04840ec 100644 --- a/includes/SpecialImagelist.php +++ b/includes/SpecialImagelist.php @@ -16,11 +16,11 @@ function wfSpecialImagelist() { $limit = $pager->getForm(); $body = $pager->getBody(); $nav = $pager->getNavigationBar(); - $wgOut->addHTML( " + $wgOut->addHTML( $limit -
- $body - $nav" ); + . '
' + . $body + . $nav ); } class ImageListPager extends TablePager { -- 2.20.1