r105543 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105542‎ | r105543 | r105544 >
Date:12:51, 8 December 2011
Author:hashar
Status:ok
Tags:
Comment:
purgeThumbList debug message is now a oneliner
Modified paths:
  • /trunk/phase3/includes/filerepo/file/LocalFile.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/file/LocalFile.php
@@ -759,7 +759,12 @@
760760 * @param $files array of strings: relative filenames (to $dir)
761761 */
762762 protected function purgeThumbList($dir, $files) {
763 - wfDebug( __METHOD__ . ": " . var_export( $files, true ) . "\n" );
 763+ $fileListDebug = strtr(
 764+ var_export( $files, true ),
 765+ array("\n"=>'')
 766+ );
 767+ wfDebug( __METHOD__ . ": $fileListDebug\n" );
 768+
764769 foreach ( $files as $file ) {
765770 # Check that the base file name is part of the thumb name
766771 # This is a basic sanity check to avoid erasing unrelated directories

Status & tagging log