From: aude Date: Wed, 7 Nov 2012 12:56:54 +0000 (+0000) Subject: put SpecialMovepageAfterMove hook after success message output X-Git-Tag: 1.31.0-rc.0~21709^2 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=d31e924a44148ad6573de37f589129b509ad8577;p=lhc%2Fweb%2Fwiklou.git put SpecialMovepageAfterMove hook after success message output - this doesn't change behaviour of the hook (e.g. as used in PageTriage and other places), while allowing extra output to be added to special page by extensions upon page move success. Change-Id: I6dea0d2bc068561874b471e916e55397a157ffb0 --- diff --git a/includes/specials/SpecialMovepage.php b/includes/specials/SpecialMovepage.php index af3dbf3e44..ce2633fd19 100644 --- a/includes/specials/SpecialMovepage.php +++ b/includes/specials/SpecialMovepage.php @@ -464,8 +464,6 @@ class MovePageForm extends UnlistedSpecialPage { DoubleRedirectJob::fixRedirects( 'move', $ot, $nt ); } - wfRunHooks( 'SpecialMovepageAfterMove', array( &$this, &$ot, &$nt ) ); - $out = $this->getOutput(); $out->setPageTitle( $this->msg( 'pagemovedsub' ) ); @@ -484,6 +482,8 @@ class MovePageForm extends UnlistedSpecialPage { $newLink )->params( $oldText, $newText )->parseAsBlock() ); $out->addWikiMsg( $msgName ); + wfRunHooks( 'SpecialMovepageAfterMove', array( &$this, &$ot, &$nt ) ); + # Now we move extra pages we've been asked to move: subpages and talk # pages. First, if the old page or the new page is a talk page, we # can't move any talk pages: cancel that.