re-add shuffling paste list

This commit is contained in:
El RIDO 2022-12-12 21:28:38 +01:00
parent 78e75d5a3f
commit 53ab57627e
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92

View file

@ -367,11 +367,9 @@ class Filesystem extends AbstractData
$opened = 0; $opened = 0;
$limit = $batchsize * 10; // try at most 10 times $batchsize pastes before giving up $limit = $batchsize * 10; // try at most 10 times $batchsize pastes before giving up
$time = time(); $time = time();
foreach ($this->_getPasteIterator() as $file) { $files = $this->getAllPastes();
if ($file->isDir()) { shuffle($files);
continue; foreach ($files as $pasteid) {
}
$pasteid = $file->getBasename('.php');
if ($this->exists($pasteid)) { if ($this->exists($pasteid)) {
$data = $this->read($pasteid); $data = $this->read($pasteid);
if ( if (