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:
parent
eeb16a279e
commit
ab24b1f826
1 changed files with 0 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue