From 34c8811671104e4f764c8f986f4a1bd4a29b4332 Mon Sep 17 00:00:00 2001 From: River Tarnell Date: Sun, 27 May 2007 22:13:56 +0000 Subject: [PATCH] - need to include in empty result case, otherwise page layout is screwed - use a class instead of id, so it works with special page transclusion --- includes/QueryPage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 98e7ba2e8a..9e71c93282 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -333,7 +333,7 @@ class QueryPage { $this->preprocessResults( $dbr, $res ); - $wgOut->addHtml( XML::openElement( 'div', array('id' => 'mw-spcontent') ) ); + $wgOut->addHtml( XML::openElement( 'div', array('class' => 'mw-spcontent') ) ); # Top header and navigation if( $shownavigation ) { @@ -348,6 +348,7 @@ class QueryPage { # No results to show, so don't bother with "showing X of Y" etc. # -- just let the user know and give up now $wgOut->addHtml( '

' . wfMsgHtml( 'specialpage-empty' ) . '

' ); + $wgOut->addHtml( XML::closeElement( 'div' ) ); return; } } -- 2.20.1