purgeThumbList() needn't always delete all the files in the thumb dir
authorRuss Nelson <nelson@users.mediawiki.org>
Wed, 7 Sep 2011 01:09:23 +0000 (01:09 +0000)
committerRuss Nelson <nelson@users.mediawiki.org>
Wed, 7 Sep 2011 01:09:23 +0000 (01:09 +0000)
includes/filerepo/LocalFile.php

index 3387882..001cace 100644 (file)
@@ -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 */