From d998f4d43d61f47dbbd784510938ea45d5dc919f Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 29 May 2008 16:14:02 +0000 Subject: [PATCH] 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 --- includes/SpecialSearch.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 ) { -- 2.20.1