Index: trunk/phase3/includes/Article.php |
— | — | @@ -1458,14 +1458,14 @@ |
1459 | 1459 | |
1460 | 1460 | # Update page |
1461 | 1461 | $ok = $this->updateRevisionOn( $dbw, $revision, $lastRevision ); |
1462 | | - |
1463 | | - wfRunHooks( 'NewRevisionFromEditComplete', array($this, $revision, $baseRevId) ); |
1464 | 1462 | |
1465 | 1463 | if( !$ok ) { |
1466 | 1464 | /* Belated edit conflict! Run away!! */ |
1467 | 1465 | $good = false; |
1468 | 1466 | $dbw->rollback(); |
1469 | 1467 | } else { |
| 1468 | + wfRunHooks( 'NewRevisionFromEditComplete', array( $this, $revision, $baseRevId ) ); |
| 1469 | + |
1470 | 1470 | # Update recentchanges |
1471 | 1471 | if( !( $flags & EDIT_SUPPRESS_RC ) ) { |
1472 | 1472 | $rcid = RecentChange::notifyEdit( $now, $this->mTitle, $isminor, $wgUser, $summary, |