From d34e904e7e8b4038a4a1adaf26c3b78764c66966 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Tue, 22 Apr 2014 01:52:11 -0700 Subject: [PATCH] Remove useless comments from search output They show up when results are broken, but it's better to skip the broken result entirely and not put in a pointless comment. Change-Id: I691b04f31e2e439f9481c954f177e21b7f80ca2c --- includes/specials/SpecialSearch.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index 61bb1cd873..0c4252e497 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -551,7 +551,7 @@ class SpecialSearch extends SpecialPage { $profile = new ProfileSection( __METHOD__ ); if ( $result->isBrokenTitle() ) { - return "\n"; + return ''; } $title = $result->getTitle(); @@ -583,7 +583,7 @@ class SpecialSearch extends SpecialPage { // The least confusing at this point is to drop the result. // You may get less results, but... oh well. :P if ( $result->isMissingRevision() ) { - return "\n"; + return ''; } // format redirects / relevant sections @@ -783,7 +783,7 @@ class SpecialSearch extends SpecialPage { $profile = new ProfileSection( __METHOD__ ); if ( $result->isBrokenTitle() ) { - return "\n"; + return ''; } $title = $result->getTitle(); -- 2.20.1