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
Merge "parser: Update outdated comment about ImageGallery"
[lhc/web/wiklou.git]
/
includes
/
actions
/
RawAction.php
diff --git
a/includes/actions/RawAction.php
b/includes/actions/RawAction.php
index
5bf24f6
..
d8c8bc3
100644
(file)
--- a/
includes/actions/RawAction.php
+++ b/
includes/actions/RawAction.php
@@
-108,7
+108,9
@@
class RawAction extends FormlessAction {
$response->statusHeader( 404 );
}
$response->statusHeader( 404 );
}
- if ( !Hooks::run( 'RawPageViewBeforeOutput', [ &$this, &$text ] ) ) {
+ // Avoid PHP 7.1 warning of passing $this by reference
+ $rawAction = $this;
+ if ( !Hooks::run( 'RawPageViewBeforeOutput', [ &$rawAction, &$text ] ) ) {
wfDebug( __METHOD__ . ": RawPageViewBeforeOutput hook broke raw page output.\n" );
}
wfDebug( __METHOD__ . ": RawPageViewBeforeOutput hook broke raw page output.\n" );
}