From: River Tarnell Date: Sun, 27 May 2007 22:13:56 +0000 (+0000) Subject: - need to include in empty result case, otherwise page layout is screwed X-Git-Tag: 1.31.0-rc.0~52793 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=34c8811671104e4f764c8f986f4a1bd4a29b4332;p=lhc%2Fweb%2Fwiklou.git - 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 --- 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; } }