From 256a5cf1c44b9bed611a005daca53b2a28fed26d Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 18 Jan 2017 14:05:45 -0800 Subject: [PATCH] Unbreak extensions from ShowSearchHitTitle signature change Fixes If78cb0c29ae394f16e465c15a8e8246c1b56dcea Change-Id: Ia56f2eb4a5ed98f727f924666322e1c97b3ee183 --- docs/hooks.txt | 2 +- includes/widget/search/FullSearchResultWidget.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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, -- 2.20.1