Merge "Unbreak extensions from ShowSearchHitTitle signature change"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 18 Jan 2017 22:22:43 +0000 (22:22 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 18 Jan 2017 22:22:43 +0000 (22:22 +0000)
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,