Fix regression in r84638, causing ArticleDeleteComplete to be called twice on file...
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 2 Jun 2011 15:42:23 +0000 (15:42 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 2 Jun 2011 15:42:23 +0000 (15:42 +0000)
includes/FileDeleteForm.php

index 2c87ccc..f16036b 100644 (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();
                                        }