X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fwidget%2Fsearch%2FFullSearchResultWidget.php;h=4c9839966b9e39395cd8d93e1ca75613cdb39a06;hp=a93e1fcde3837bfc6a1f64a861b9b6b672a8e885;hb=0e93f96c9a82b9210ab6fcfa65bf4b21af00faf3;hpb=524b25dc301baee0b49fd04f355aa78c7040925d diff --git a/includes/widget/search/FullSearchResultWidget.php b/includes/widget/search/FullSearchResultWidget.php index a93e1fcde3..4c9839966b 100644 --- a/includes/widget/search/FullSearchResultWidget.php +++ b/includes/widget/search/FullSearchResultWidget.php @@ -131,16 +131,17 @@ class FullSearchResultWidget implements SearchResultWidget { // clone to prevent hook from changing the title stored inside $result $title = clone $result->getTitle(); - $queryString = []; + $query = []; + $attributes = [ 'data-serp-pos' => $position ]; Hooks::run( 'ShowSearchHitTitle', - [ $title, &$snippet, $result, $terms, $this->specialPage, &$queryString ] ); + [ &$title, &$snippet, $result, $terms, $this->specialPage, &$query, &$attributes ] ); $link = $this->linkRenderer->makeLink( $title, $snippet, - [ 'data-serp-pos' => $position ], - $queryString + $attributes, + $query ); return $link;