From: Erik Bernhardson Date: Mon, 7 Nov 2016 22:45:07 +0000 (-0800) Subject: [search] Remove more dead code X-Git-Tag: 1.31.0-rc.0~4924^2 X-Git-Url: http://git.cyclocoop.org/%24dirpuce/puce%24spip_lang_rtl.gif?a=commitdiff_plain;h=1525f6cd45e47c4e9623da234a1d55f862b39498;p=lhc%2Fweb%2Fwiklou.git [search] Remove more dead code This code in SpecialSearch looks to still be around from the days where there was a feature that go would send you to directly to an edit page, rather than showing search results. That feature no longer exists, so remove the related code. Change-Id: If5b064b08a6258bfab31ab8f8b62c1d7283c8912 --- diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index f301e7c4cd..e7a86774bc 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -234,11 +234,6 @@ class SpecialSearch extends SpecialPage { return; } - # No match, generate an edit URL - $title = Title::newFromText( $term ); - if ( !is_null( $title ) ) { - Hooks::run( 'SpecialSearchNogomatch', [ &$title ] ); - } $this->showResults( $term ); }