mirror of
https://github.com/getgrav/grav.git
synced 2026-02-24 15:41:26 +01:00
Oops, fix a bug
This commit is contained in:
@@ -639,9 +639,9 @@ class FlexDirectory implements FlexAuthorizeInterface
|
||||
}
|
||||
|
||||
// We need to do this in two steps as orderBy() calls loadIndex() again and we do not want infinite loop.
|
||||
$index = $this->createIndex($keys);
|
||||
$this->index = $this->createIndex($keys);
|
||||
/** @var FlexCollectionInterface $collection */
|
||||
$collection = $index->orderBy($this->getConfig('data.ordering', []));
|
||||
$collection = $this->index->orderBy($this->getConfig('data.ordering', []));
|
||||
$this->index = $index = $collection->getIndex();
|
||||
|
||||
$debugger->stopTimer('flex-keys-' . $this->type . $j);
|
||||
|
||||
Reference in New Issue
Block a user