From: Chad Horohoe Date: Wed, 18 Jan 2017 22:05:45 +0000 (-0800) Subject: Unbreak extensions from ShowSearchHitTitle signature change X-Git-Tag: 1.31.0-rc.0~4291^2 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=256a5cf1c44b9bed611a005daca53b2a28fed26d;p=lhc%2Fweb%2Fwiklou.git Unbreak extensions from ShowSearchHitTitle signature change Fixes If78cb0c29ae394f16e465c15a8e8246c1b56dcea Change-Id: Ia56f2eb4a5ed98f727f924666322e1c97b3ee183 --- diff --git a/docs/hooks.txt b/docs/hooks.txt index 4057cce20d..a000bb14ce 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -2822,7 +2822,7 @@ $terms: Search terms, for highlighting function returned false. 'ShowSearchHitTitle': Customise display of search hit title/link. -$title: Title to link to +&$title: Title to link to &$text: Text to use for the link $result: The search result $terms: The search terms entered diff --git a/includes/widget/search/FullSearchResultWidget.php b/includes/widget/search/FullSearchResultWidget.php index a93e1fcde3..69bfa6d85c 100644 --- a/includes/widget/search/FullSearchResultWidget.php +++ b/includes/widget/search/FullSearchResultWidget.php @@ -134,7 +134,7 @@ class FullSearchResultWidget implements SearchResultWidget { $queryString = []; Hooks::run( 'ShowSearchHitTitle', - [ $title, &$snippet, $result, $terms, $this->specialPage, &$queryString ] ); + [ &$title, &$snippet, $result, $terms, $this->specialPage, &$queryString ] ); $link = $this->linkRenderer->makeLink( $title,