Merge "Pass the search term into the SpecialSearchResultsAppend hook"

This commit is contained in:
jenkins-bot 2015-10-07 10:37:50 +00:00 committed by Gerrit Code Review
commit e36e7e352f
2 changed files with 2 additions and 1 deletions

View 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

View 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 ) );
}