From: Russ Nelson Date: Wed, 7 Sep 2011 01:09:23 +0000 (+0000) Subject: purgeThumbList() needn't always delete all the files in the thumb dir X-Git-Tag: 1.31.0-rc.0~27854 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/Bar?a=commitdiff_plain;h=a75652d8cb43c4c86db8b7e5d889e6ff32110ac7;p=lhc%2Fweb%2Fwiklou.git purgeThumbList() needn't always delete all the files in the thumb dir --- diff --git a/includes/filerepo/LocalFile.php b/includes/filerepo/LocalFile.php index 3387882abd..001cace60a 100644 --- a/includes/filerepo/LocalFile.php +++ b/includes/filerepo/LocalFile.php @@ -761,12 +761,6 @@ class LocalFile extends File { wfRestoreWarnings(); } } - if ( is_dir( $dir ) ) { - wfSuppressWarnings(); - rmdir( $dir ); // Might have already gone away, spews errors if we don't. - wfRestoreWarnings(); - } - } /** purgeDescription inherited */