From 399956f4209406fa49898022e34a9741d2c7035f Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 16 Sep 2008 12:47:44 +0000 Subject: [PATCH] * Remove unneeded code * Whitespace --- includes/FileDeleteForm.php | 4 ++-- includes/filerepo/LocalFile.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/FileDeleteForm.php b/includes/FileDeleteForm.php index bc80c2b2d4..ae144d7d07 100644 --- a/includes/FileDeleteForm.php +++ b/includes/FileDeleteForm.php @@ -113,8 +113,8 @@ class FileDeleteForm { } } } - if( $status->isGood() ) wfRunHooks('FileDeleteComplete', array( - &$file, &$oldimage, &$article, &$wgUser, &$reason)); + if( $status->isGood() ) + wfRunHooks('FileDeleteComplete', array( &$file, &$oldimage, &$article, &$wgUser, &$reason)); return $status; } diff --git a/includes/filerepo/LocalFile.php b/includes/filerepo/LocalFile.php index 65f4efc09f..f942d43266 100644 --- a/includes/filerepo/LocalFile.php +++ b/includes/filerepo/LocalFile.php @@ -1365,7 +1365,7 @@ class LocalFileDeleteBatch { $dbw->delete( 'oldimage', array( 'oi_name' => $this->file->getName(), - 'oi_archive_name IN (' . $dbw->makeList( array_keys( $oldRels ) ) . ')' + 'oi_archive_name' => array_keys( $oldRels ) ), __METHOD__ ); } if ( $deleteCurrent ) { -- 2.20.1