r40911 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40910‎ | r40911 | r40912 >
Date:12:47, 16 September 2008
Author:aaron
Status:old
Tags:
Comment:
* Remove unneeded code
* Whitespace
Modified paths:
  • /trunk/phase3/includes/FileDeleteForm.php (modified) (history)
  • /trunk/phase3/includes/filerepo/LocalFile.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/LocalFile.php
@@ -1365,7 +1365,7 @@
13661366 $dbw->delete( 'oldimage',
13671367 array(
13681368 'oi_name' => $this->file->getName(),
1369 - 'oi_archive_name IN (' . $dbw->makeList( array_keys( $oldRels ) ) . ')'
 1369+ 'oi_archive_name' => array_keys( $oldRels )
13701370 ), __METHOD__ );
13711371 }
13721372 if ( $deleteCurrent ) {
Index: trunk/phase3/includes/FileDeleteForm.php
@@ -113,8 +113,8 @@
114114 }
115115 }
116116 }
117 - if( $status->isGood() ) wfRunHooks('FileDeleteComplete', array(
118 - &$file, &$oldimage, &$article, &$wgUser, &$reason));
 117+ if( $status->isGood() )
 118+ wfRunHooks('FileDeleteComplete', array( &$file, &$oldimage, &$article, &$wgUser, &$reason));
119119
120120 return $status;
121121 }