Fix regression in r84638, causing ArticleDeleteComplete to be called twice on file deletions. doDeleteArticle() already calls it, there's no need for FileDeleteForm::doDelete() to call it again

This commit is contained in:
Roan Kattouw 2011-06-02 15:42:23 +00:00
parent eeb16a279e
commit ab24b1f826

View file

@ -131,7 +131,6 @@ class FileDeleteForm {
$status = $file->delete( $reason, $suppress );
if( $status->ok ) {
$dbw->commit();
wfRunHooks( 'ArticleDeleteComplete', array( &$article, &$wgUser, $reason, $id ) );
} else {
$dbw->rollback();
}