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=0d0fa124110050b8c63033b537aa2cb1d0b6d5a3;hb=5120937028f768749d058aa91dde82a96de0af1c;hpb=96491f80d3481190605006c71a8421857adda58e diff --git a/includes/widget/search/FullSearchResultWidget.php b/includes/widget/search/FullSearchResultWidget.php index 0d0fa12411..4c9839966b 100644 --- a/includes/widget/search/FullSearchResultWidget.php +++ b/includes/widget/search/FullSearchResultWidget.php @@ -133,13 +133,14 @@ class FullSearchResultWidget implements SearchResultWidget { $title = clone $result->getTitle(); $query = []; + $attributes = [ 'data-serp-pos' => $position ]; Hooks::run( 'ShowSearchHitTitle', - [ &$title, &$snippet, $result, $terms, $this->specialPage, &$query ] ); + [ &$title, &$snippet, $result, $terms, $this->specialPage, &$query, &$attributes ] ); $link = $this->linkRenderer->makeLink( $title, $snippet, - [ 'data-serp-pos' => $position ], + $attributes, $query );