Skip to content

Instantly share code, notes, and snippets.

@nomoa
Created October 27, 2015 14:08
Show Gist options
  • Select an option

  • Save nomoa/0e072921eb313229d4a4 to your computer and use it in GitHub Desktop.

Select an option

Save nomoa/0e072921eb313229d4a4 to your computer and use it in GitHub Desktop.
$oldTitle = &$this->oldTitle;
$newTitle = &$this->newTitle;
$dbw->onTransactionIdle( function () use ( &$oldTitle, &$newTitle, &$user, $pageid, $redirid, $reason ) {
Hooks::run( 'TitleMoveComplete', array( &$oldTitle, &$newTitle, &$user, $pageid, $redirid, $reason ) );
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment