From 94157f6021b7d05a986af879bf599e463c9decd3 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 27 May 2007 08:22:37 +0000 Subject: [PATCH] * cleaner indenting for query pages * enclose the content generated in a
(for javascript) --- includes/QueryPage.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 537410447d..98e7ba2e8a 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -332,6 +332,8 @@ class QueryPage { $num = $dbr->numRows($res); $this->preprocessResults( $dbr, $res ); + + $wgOut->addHtml( XML::openElement( 'div', array('id' => 'mw-spcontent') ) ); # Top header and navigation if( $shownavigation ) { @@ -364,6 +366,8 @@ class QueryPage { if( $shownavigation ) { $wgOut->addHtml( '

' . $paging . '

' ); } + + $wgOut->addHtml( XML::closeElement( 'div' ) ); return $num; } @@ -427,11 +431,11 @@ class QueryPage { } function openList( $offset ) { - return "
    "; + return "\n
      \n"; } function closeList() { - return '
    '; + return "
\n"; } /** -- 2.20.1