Index: trunk/phase3/includes/filerepo/file/LocalFile.php |
— | — | @@ -759,7 +759,12 @@ |
760 | 760 | * @param $files array of strings: relative filenames (to $dir) |
761 | 761 | */ |
762 | 762 | 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 | + |
764 | 769 | foreach ( $files as $file ) { |
765 | 770 | # Check that the base file name is part of the thumb name |
766 | 771 | # This is a basic sanity check to avoid erasing unrelated directories |