Index: trunk/phase3/includes/Article.php |
— | — | @@ -1680,7 +1680,6 @@ |
1681 | 1681 | $dbw->rollback(); |
1682 | 1682 | } else { |
1683 | 1683 | global $wgUseRCPatrol; |
1684 | | - wfRunHooks( 'NewRevisionFromEditComplete', array($this, $revision, $baseRevId, $user) ); |
1685 | 1684 | # Update recentchanges |
1686 | 1685 | if( !( $flags & EDIT_SUPPRESS_RC ) ) { |
1687 | 1686 | # Mark as patrolled if the user can do so |
— | — | @@ -1695,6 +1694,8 @@ |
1696 | 1695 | PatrolLog::record( $rc, true ); |
1697 | 1696 | } |
1698 | 1697 | } |
| 1698 | + # Notify extensions of a new edit |
| 1699 | + wfRunHooks( 'NewRevisionFromEditComplete', array(&$this, $revision, $baseRevId, $user) ); |
1699 | 1700 | $user->incEditCount(); |
1700 | 1701 | $dbw->commit(); |
1701 | 1702 | } |
— | — | @@ -1761,7 +1762,6 @@ |
1762 | 1763 | # Update the page record with revision data |
1763 | 1764 | $this->updateRevisionOn( $dbw, $revision, 0 ); |
1764 | 1765 | |
1765 | | - wfRunHooks( 'NewRevisionFromEditComplete', array($this, $revision, false, $user) ); |
1766 | 1766 | # Update recentchanges |
1767 | 1767 | if( !( $flags & EDIT_SUPPRESS_RC ) ) { |
1768 | 1768 | global $wgUseRCPatrol, $wgUseNPPatrol; |
— | — | @@ -1775,6 +1775,8 @@ |
1776 | 1776 | PatrolLog::record( $rc, true ); |
1777 | 1777 | } |
1778 | 1778 | } |
| 1779 | + # Notify extensions of a new page edit |
| 1780 | + wfRunHooks( 'NewRevisionFromEditComplete', array(&$this, $revision, false, $user) ); |
1779 | 1781 | $user->incEditCount(); |
1780 | 1782 | $dbw->commit(); |
1781 | 1783 | |