* Remove unneeded code
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 16 Sep 2008 12:47:44 +0000 (12:47 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 16 Sep 2008 12:47:44 +0000 (12:47 +0000)
* Whitespace

includes/FileDeleteForm.php
includes/filerepo/LocalFile.php

index bc80c2b..ae144d7 100644 (file)
@@ -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;
        }
index 65f4efc..f942d43 100644 (file)
@@ -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 ) {