From a75652d8cb43c4c86db8b7e5d889e6ff32110ac7 Mon Sep 17 00:00:00 2001 From: Russ Nelson Date: Wed, 7 Sep 2011 01:09:23 +0000 Subject: [PATCH] purgeThumbList() needn't always delete all the files in the thumb dir --- includes/filerepo/LocalFile.php | 6 ------ 1 file changed, 6 deletions(-) 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 */ -- 2.20.1