From: Brion Vibber Date: Thu, 29 May 2008 16:14:02 +0000 (+0000) Subject: Revert r35538: X-Git-Tag: 1.31.0-rc.0~47304 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=d998f4d43d61f47dbbd784510938ea45d5dc919f;p=lhc%2Fweb%2Fwiklou.git Revert r35538: * duplicated "Search results" header, looks bad *

style on title & text subheadings doesn't look as clean; the

has nice dividing lines in MonoBook --- diff --git a/includes/SpecialSearch.php b/includes/SpecialSearch.php index 7b3fcc630d..d68ff9a8fd 100644 --- a/includes/SpecialSearch.php +++ b/includes/SpecialSearch.php @@ -205,7 +205,6 @@ class SpecialSearch { if($textMatches && !is_null($textMatches->getTotalHits())) $totalNum += $textMatches->getTotalHits(); if ( $num > 0 ) { - $wgOut->wrapWikiMsg( "==$1==\n", 'searchresults' ); if ( $totalNum > 0 ){ $top = wfMsgExt('showingresultstotal', array( 'parseinline' ), $this->offset+1, $this->offset+$num, $totalNum ); @@ -233,7 +232,7 @@ class SpecialSearch { if( $titleMatches ) { if( $titleMatches->numRows() ) { - $wgOut->wrapWikiMsg( "===$1===\n", 'titlematches' ); + $wgOut->wrapWikiMsg( "==$1==\n", 'titlematches' ); $wgOut->addHTML( $this->showMatches( $titleMatches ) ); } $titleMatches->free(); @@ -243,7 +242,7 @@ class SpecialSearch { // output appropriate heading if( $textMatches->numRows() ) { if($titleMatches) - $wgOut->wrapWikiMsg( "===$1===\n", 'textmatches' ); + $wgOut->wrapWikiMsg( "==$1==\n", 'textmatches' ); else // if no title matches the heading is redundant $wgOut->addHTML("
"); } elseif( $num == 0 ) {