Unbreak extensions from ShowSearchHitTitle signature change
authorChad Horohoe <chadh@wikimedia.org>
Wed, 18 Jan 2017 22:05:45 +0000 (14:05 -0800)
committerChad Horohoe <chadh@wikimedia.org>
Wed, 18 Jan 2017 22:05:46 +0000 (14:05 -0800)
Fixes If78cb0c29ae394f16e465c15a8e8246c1b56dcea

Change-Id: Ia56f2eb4a5ed98f727f924666322e1c97b3ee183

docs/hooks.txt
includes/widget/search/FullSearchResultWidget.php

index 4057cce..a000bb1 100644 (file)
@@ -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
index a93e1fc..69bfa6d 100644 (file)
@@ -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,