X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FMovePage.php;h=1e9570d2f7eed9b49c32567fd8bc5046e16a74f3;hb=a3fc6fc46934c546e109ec1db52f61df1bf935b7;hp=fc9f6a6676614227ffe2c87c5f6521bf63641f24;hpb=61f2ceecfa0e249b26fbb4b6cb2a76df4f38b3ec;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MovePage.php b/includes/MovePage.php index fc9f6a6676..1e9570d2f7 100644 --- a/includes/MovePage.php +++ b/includes/MovePage.php @@ -415,7 +415,9 @@ class MovePage { new AtomicSectionUpdate( $dbw, __METHOD__, - function () use ( $params ) { + // Hold onto $user to avoid HHVM bug where it no longer + // becomes a reference (T118683) + function () use ( $params, &$user ) { Hooks::run( 'TitleMoveComplete', $params ); } )