X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2Fpagers%2FContribsPager.php;h=59fa948ac6d991da28cd94d808d1bd7dadd50fa0;hb=8d0ab002453a1fa6594cdcc8bf2290d9d97b81ad;hp=205364f81babdbc1711c9e1f9e022e759f2b1d80;hpb=264c8892d66b911498cc9d84f9f6fd288ddcceb2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/pagers/ContribsPager.php b/includes/specials/pagers/ContribsPager.php index 205364f81b..59fa948ac6 100644 --- a/includes/specials/pagers/ContribsPager.php +++ b/includes/specials/pagers/ContribsPager.php @@ -593,7 +593,10 @@ class ContribsPager extends RangeChronologicalPager { // Let extensions add data Hooks::run( 'ContributionsLineEnding', [ $this, &$ret, $row, &$classes, &$attribs ] ); - $attribs = wfArrayFilterByKey( $attribs, [ Sanitizer::class, 'isReservedDataAttribute' ] ); + $attribs = array_filter( $attribs, + [ Sanitizer::class, 'isReservedDataAttribute' ], + ARRAY_FILTER_USE_KEY + ); // TODO: Handle exceptions in the catch block above. Do any extensions rely on // receiving empty rows?