aboutsummaryrefslogtreecommitdiffstats
path: root/includes/FileDeleteForm.php
diff options
context:
space:
mode:
authorRoan Kattouw <catrope@users.mediawiki.org>2011-06-02 15:42:23 +0000
committerRoan Kattouw <catrope@users.mediawiki.org>2011-06-02 15:42:23 +0000
commitab24b1f826b61ae0edd234c375bd72b2ac888732 (patch)
treec222f89c89e3e382f386f9890b8a7e15afcaa781 /includes/FileDeleteForm.php
parenteeb16a279ebe7154895b09ab977865083f3437f8 (diff)
downloadmediawikicore-ab24b1f826b61ae0edd234c375bd72b2ac888732.tar.gz
mediawikicore-ab24b1f826b61ae0edd234c375bd72b2ac888732.zip
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
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/89345
Diffstat (limited to 'includes/FileDeleteForm.php')
-rw-r--r--includes/FileDeleteForm.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/includes/FileDeleteForm.php b/includes/FileDeleteForm.php
index 2c87ccc99b20..f16036b432ae 100644
--- a/includes/FileDeleteForm.php
+++ b/includes/FileDeleteForm.php
@@ -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();
}