X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialWantedpages.php;h=8cea6ccb7768ef55c85fc7d9433fe10d39ed4ee8;hb=575a886a466bab5ffb255c936e16999eacea167c;hp=c37ecbd17adf9ae1aa3bfb47965bbb3417b6a716;hpb=4518a5a86ce81faff53407d4603b8643144a9d33;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialWantedpages.php b/includes/specials/SpecialWantedpages.php index c37ecbd17a..8cea6ccb77 100644 --- a/includes/specials/SpecialWantedpages.php +++ b/includes/specials/SpecialWantedpages.php @@ -85,7 +85,9 @@ class WantedPagesPage extends WantedQueryPage { ] ]; // Replacement for the WantedPages::getSQL hook - Hooks::run( 'WantedPages::getQueryInfo', [ &$this, &$query ] ); + // Avoid PHP 7.1 warning from passing $this by reference + $wantedPages = $this; + Hooks::run( 'WantedPages::getQueryInfo', [ &$wantedPages, &$query ] ); return $query; }