From ae3fae70cdf3d98b71a2e30e874ac7a1af3abe04 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 15 Jun 2009 20:08:50 +0000 Subject: [PATCH] reverted r49889 - breaks patrol mark functions (and a real fix was used anyway) --- includes/Article.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 9b626b6bb5..21b402f8da 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1705,6 +1705,7 @@ class Article { $dbw->rollback(); } else { global $wgUseRCPatrol; + wfRunHooks( 'NewRevisionFromEditComplete', array($this, $revision, $baseRevId, $user) ); # Update recentchanges if( !( $flags & EDIT_SUPPRESS_RC ) ) { # Mark as patrolled if the user can do so @@ -1719,8 +1720,6 @@ class Article { PatrolLog::record( $rc, true ); } } - # Notify extensions of a new edit - wfRunHooks( 'NewRevisionFromEditComplete', array(&$this, $revision, $baseRevId, $user) ); $user->incEditCount(); $dbw->commit(); } @@ -1787,6 +1786,7 @@ class Article { # Update the page record with revision data $this->updateRevisionOn( $dbw, $revision, 0 ); + wfRunHooks( 'NewRevisionFromEditComplete', array($this, $revision, false, $user) ); # Update recentchanges if( !( $flags & EDIT_SUPPRESS_RC ) ) { global $wgUseRCPatrol, $wgUseNPPatrol; @@ -1800,8 +1800,6 @@ class Article { PatrolLog::record( $rc, true ); } } - # Notify extensions of a new page edit - wfRunHooks( 'NewRevisionFromEditComplete', array(&$this, $revision, false, $user) ); $user->incEditCount(); $dbw->commit(); -- 2.20.1