r91751 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91750‎ | r91751 | r91752 >
Date:19:32, 8 July 2011
Author:reedy
Status:ok
Tags:
Comment:
Partial revert of r91746
Modified paths:
  • /branches/wmf/1.17wmf1/includes/filerepo/LocalFile.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/includes/filerepo/LocalFile.php
@@ -670,12 +670,8 @@
671671 $url = $this->getThumbUrl( $file );
672672 $urls[] = $url;
673673 wfSuppressWarnings();
674 - $res = unlink( "$dir/$file" );
 674+ unlink( "$dir/$file" );
675675 wfRestoreWarnings();
676 - if( !$res ) {
677 - $err = error_get_last();
678 - wfDebugLog( 'purgeThumbnails', __METHOD__ . 'Error deleting' . "$dir/$file: {$err['message']}\n" );
679 - }
680676 }
681677 }
682678

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r91746Apply slightly modified patch of https://bugzilla.wikimedia.org/show_bug.cgi?......reedy18:42, 8 July 2011

Status & tagging log