Index: trunk/phase3/includes/Article.php |
— | — | @@ -1473,8 +1473,10 @@ |
1474 | 1474 | wfDoUpdates(); |
1475 | 1475 | } |
1476 | 1476 | |
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 | + } |
1479 | 1481 | |
1480 | 1482 | wfProfileOut( __METHOD__ ); |
1481 | 1483 | return $good; |