From: Aaron Schulz Date: Mon, 15 Jun 2009 20:08:50 +0000 (+0000) Subject: reverted r49889 - breaks patrol mark functions (and a real fix was used anyway) X-Git-Tag: 1.31.0-rc.0~41355 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=ae3fae70cdf3d98b71a2e30e874ac7a1af3abe04;p=lhc%2Fweb%2Fwiklou.git reverted r49889 - breaks patrol mark functions (and a real fix was used anyway) --- 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();