Index: trunk/phase3/includes/Title.php |
— | — | @@ -2612,6 +2612,7 @@ |
2613 | 2613 | $nullRevId = $nullRevision->insertOn( $dbw ); |
2614 | 2614 | |
2615 | 2615 | $article = new Article( $nt ); |
| 2616 | + wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, false) ); |
2616 | 2617 | |
2617 | 2618 | # Change the name of the target page: |
2618 | 2619 | $dbw->update( 'page', |
— | — | @@ -2625,8 +2626,6 @@ |
2626 | 2627 | $fname |
2627 | 2628 | ); |
2628 | 2629 | $nt->resetArticleID( $oldid ); |
2629 | | - |
2630 | | - wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, false) ); |
2631 | 2630 | |
2632 | 2631 | # Recreate the redirect, this time in the other direction. |
2633 | 2632 | if( $createRedirect || !$wgUser->isAllowed('suppressredirect') ) { |
— | — | @@ -2708,6 +2707,7 @@ |
2709 | 2708 | $nullRevId = $nullRevision->insertOn( $dbw ); |
2710 | 2709 | |
2711 | 2710 | $article = new Article( $nt ); |
| 2711 | + wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, false) ); |
2712 | 2712 | |
2713 | 2713 | # Rename page entry |
2714 | 2714 | $dbw->update( 'page', |
— | — | @@ -2721,8 +2721,6 @@ |
2722 | 2722 | $fname |
2723 | 2723 | ); |
2724 | 2724 | $nt->resetArticleID( $oldid ); |
2725 | | - |
2726 | | - wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, false) ); |
2727 | 2725 | |
2728 | 2726 | if( $createRedirect || !$wgUser->isAllowed('suppressredirect') ) { |
2729 | 2727 | # Insert redirect |