r108492 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108491‎ | r108492 | r108493 >
Date:04:34, 10 January 2012
Author:jdpond
Status:ok
Tags:
Comment:
fixed compatibility of NSOldLocalFile::purgeThumbnails() and NSLocalFile::purgeThumbnails() with revised LocalFile::purgeThumbnails() in r107789 (reedy) to actually use $options in query
Modified paths:
  • /trunk/extensions/NSFileRepo/NSFileRepo_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/NSFileRepo/NSFileRepo_body.php
@@ -244,7 +244,7 @@
245245 * The only thing changed here is to strip NS from the file name
246246 * Delete cached transformed files
247247 */
248 - function purgeThumbnails() {
 248+ function purgeThumbnails( $options = array() ) {
249249 global $wgUseSquid;
250250 // Delete thumbnails
251251 $files = $this->getThumbnails();
@@ -394,8 +394,8 @@
395395 function addOlds() {
396396 return NSLocalFile::addOlds();
397397 }
398 - function purgeThumbnails() {
399 - return NSLocalFile::purgeThumbnails();
 398+ function purgeThumbnails($options = array() ) {
 399+ return NSLocalFile::purgeThumbnails( $options );
400400 }
401401 /**
402402 * Replaces hard coded OldLocalFile::newFromRow to use $this->repo->oldFileFromRowFactory configuration

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r107789Followup r99892, actually use $options in queryreedy23:31, 1 January 2012

Status & tagging log