r25420 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25419‎ | r25420 | r25421 >
Date:04:19, 3 September 2007
Author:aaron
Status:old
Tags:
Comment:
*Don't call ArticleSaveComplete if the edit did not go through and no updates (even cache clearing) were done on the page.
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -1473,8 +1473,10 @@
14741474 wfDoUpdates();
14751475 }
14761476
1477 - wfRunHooks( 'ArticleSaveComplete', array( &$this, &$wgUser, $text, $summary,
1478 - $flags & EDIT_MINOR, null, null, &$flags, $revision ) );
 1477+ if ( $good ) {
 1478+ wfRunHooks( 'ArticleSaveComplete', array( &$this, &$wgUser, $text, $summary,
 1479+ $flags & EDIT_MINOR, null, null, &$flags, $revision ) );
 1480+ }
14791481
14801482 wfProfileOut( __METHOD__ );
14811483 return $good;

Follow-up revisions

RevisionCommit summaryAuthorDate
r25454Merged revisions 25415-25453 via svnmerge from...david19:27, 3 September 2007

Status & tagging log