Restore TitleMoveComplete by-reference flags to avoid errors
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 27 Oct 2015 18:08:17 +0000 (11:08 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 27 Oct 2015 18:15:39 +0000 (18:15 +0000)
They should be removed from extensions, but they don't
really hurt much for now.

Change-Id: I64b570e376062155afdf879c3ce85560127c6792

includes/MovePage.php

index 0f9374a..736cd8d 100644 (file)
@@ -371,7 +371,7 @@ class MovePage {
 
                $dbw->endAtomic( __METHOD__ );
 
-               $params = array( $this->oldTitle, $this->newTitle, $user, $pageid, $redirid, $reason );
+               $params = array( &$this->oldTitle, &$this->newTitle, &$user, $pageid, $redirid, $reason );
                $dbw->onTransactionIdle( function () use ( $params ) {
                        Hooks::run( 'TitleMoveComplete', $params );
                } );