Skip to content
Snippets Groups Projects
Unverified Commit 53ab5762 authored by El RIDO's avatar El RIDO
Browse files

re-add shuffling paste list

parent 78e75d5a
No related branches found
No related tags found
No related merge requests found
...@@ -367,11 +367,9 @@ class Filesystem extends AbstractData ...@@ -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 (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment