Index: trunk/phase3/includes/Article.php |
— | — | @@ -1705,6 +1705,7 @@ |
1706 | 1706 | $dbw->rollback(); |
1707 | 1707 | } else { |
1708 | 1708 | global $wgUseRCPatrol; |
| 1709 | + wfRunHooks( 'NewRevisionFromEditComplete', array($this, $revision, $baseRevId, $user) ); |
1709 | 1710 | # Update recentchanges |
1710 | 1711 | if( !( $flags & EDIT_SUPPRESS_RC ) ) { |
1711 | 1712 | # Mark as patrolled if the user can do so |
— | — | @@ -1719,8 +1720,6 @@ |
1720 | 1721 | PatrolLog::record( $rc, true ); |
1721 | 1722 | } |
1722 | 1723 | } |
1723 | | - # Notify extensions of a new edit |
1724 | | - wfRunHooks( 'NewRevisionFromEditComplete', array(&$this, $revision, $baseRevId, $user) ); |
1725 | 1724 | $user->incEditCount(); |
1726 | 1725 | $dbw->commit(); |
1727 | 1726 | } |
— | — | @@ -1787,6 +1786,7 @@ |
1788 | 1787 | # Update the page record with revision data |
1789 | 1788 | $this->updateRevisionOn( $dbw, $revision, 0 ); |
1790 | 1789 | |
| 1790 | + wfRunHooks( 'NewRevisionFromEditComplete', array($this, $revision, false, $user) ); |
1791 | 1791 | # Update recentchanges |
1792 | 1792 | if( !( $flags & EDIT_SUPPRESS_RC ) ) { |
1793 | 1793 | global $wgUseRCPatrol, $wgUseNPPatrol; |
— | — | @@ -1800,8 +1800,6 @@ |
1801 | 1801 | PatrolLog::record( $rc, true ); |
1802 | 1802 | } |
1803 | 1803 | } |
1804 | | - # Notify extensions of a new page edit |
1805 | | - wfRunHooks( 'NewRevisionFromEditComplete', array(&$this, $revision, false, $user) ); |
1806 | 1804 | $user->incEditCount(); |
1807 | 1805 | $dbw->commit(); |
1808 | 1806 | |