mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-23 15:56:50 +00:00
Pass 'adviseStat' => true to ->getFileList() in DeleteOldFancyCaptchas.php
As ->getFileTimestamp() presumably counts as 'stat'-ing the files Change-Id: Ia187dbc369ff56f154cae2ee46e3e9cd20def933
This commit is contained in:
parent
86246f0172
commit
50f8738984
|
@ -61,7 +61,7 @@ class DeleteOldFancyCaptchas extends Maintenance {
|
|||
$filesToDelete = [];
|
||||
$deleteDate = $this->getOption( 'date' );
|
||||
foreach (
|
||||
$backend->getFileList( [ 'dir' => $dir ] ) as $file
|
||||
$backend->getFileList( [ 'dir' => $dir, 'adviseStat' => true ] ) as $file
|
||||
) {
|
||||
$fullPath = $dir . '/' . $file;
|
||||
$timestamp = $backend->getFileTimestamp( [ 'src' => $fullPath ] );
|
||||
|
|
Loading…
Reference in a new issue