Merge "Pass the search term into the SpecialSearchResultsAppend hook"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 7 Oct 2015 10:37:50 +0000 (10:37 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 7 Oct 2015 10:37:50 +0000 (10:37 +0000)
docs/hooks.txt
includes/specials/SpecialSearch.php

index bf595e4..717dd39 100644 (file)
@@ -2907,6 +2907,7 @@ $term: Search term specified by the user
 on the search results page.  Useful for including a feedback link.
 $specialSearch: SpecialSearch object ($this)
 $output: $wgOut
+$term: Search term specified by the user
 
 'SpecialSearchSetupEngine': Allows passing custom data to search engine.
 $search: SpecialSearch special page object
index 91e84e4..fc7eeb1 100644 (file)
@@ -396,7 +396,7 @@ class SpecialSearch extends SpecialPage {
 
                $out->addHtml( "</div>" );
 
-               Hooks::run( 'SpecialSearchResultsAppend', array( $this, $out ) );
+               Hooks::run( 'SpecialSearchResultsAppend', array( $this, $out, $term ) );
 
        }