From: Antoine Musso Date: Thu, 8 Dec 2011 12:51:53 +0000 (+0000) Subject: purgeThumbList debug message is now a oneliner X-Git-Tag: 1.31.0-rc.0~26132 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/rappels.php?a=commitdiff_plain;h=c0dd74a16f07c05498507a9732656d85cd575cc5;p=lhc%2Fweb%2Fwiklou.git purgeThumbList debug message is now a oneliner --- diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php index df7144330e..d58c6837e6 100644 --- a/includes/filerepo/file/LocalFile.php +++ b/includes/filerepo/file/LocalFile.php @@ -759,7 +759,12 @@ class LocalFile extends File { * @param $files array of strings: relative filenames (to $dir) */ protected function purgeThumbList($dir, $files) { - wfDebug( __METHOD__ . ": " . var_export( $files, true ) . "\n" ); + $fileListDebug = strtr( + var_export( $files, true ), + array("\n"=>'') + ); + wfDebug( __METHOD__ . ": $fileListDebug\n" ); + foreach ( $files as $file ) { # Check that the base file name is part of the thumb name # This is a basic sanity check to avoid erasing unrelated directories