dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
phan: Disable enable_class_alias_support
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialWantedpages.php
diff --git
a/includes/specials/SpecialWantedpages.php
b/includes/specials/SpecialWantedpages.php
index
c37ecbd
..
8cea6cc
100644
(file)
--- a/
includes/specials/SpecialWantedpages.php
+++ b/
includes/specials/SpecialWantedpages.php
@@
-85,7
+85,9
@@
class WantedPagesPage extends WantedQueryPage {
]
];
// Replacement for the WantedPages::getSQL hook
]
];
// 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;
}
return $query;
}