Index: trunk/phase3/includes/Title.php |
— | — | @@ -3272,9 +3272,6 @@ |
3273 | 3273 | } |
3274 | 3274 | $nullRevId = $nullRevision->insertOn( $dbw ); |
3275 | 3275 | |
3276 | | - $article = new Article( $this ); |
3277 | | - wfRunHooks( 'NewRevisionFromEditComplete', array( $article, $nullRevision, $latest, $wgUser ) ); |
3278 | | - |
3279 | 3276 | # Change the name of the target page: |
3280 | 3277 | $dbw->update( 'page', |
3281 | 3278 | /* SET */ array( |
— | — | @@ -3288,6 +3285,9 @@ |
3289 | 3286 | ); |
3290 | 3287 | $nt->resetArticleID( $oldid ); |
3291 | 3288 | |
| 3289 | + $article = new Article( $nt ); |
| 3290 | + wfRunHooks( 'NewRevisionFromEditComplete', array( $article, $nullRevision, $latest, $wgUser ) ); |
| 3291 | + |
3292 | 3292 | # Recreate the redirect, this time in the other direction. |
3293 | 3293 | if ( $createRedirect || !$wgUser->isAllowed( 'suppressredirect' ) ) { |
3294 | 3294 | $mwRedir = MagicWord::get( 'redirect' ); |