mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 10:56:08 +01:00
flipped order
This commit is contained in:
@@ -1546,12 +1546,6 @@ class AdminController extends AdminBaseController
|
||||
];
|
||||
}
|
||||
|
||||
// Simple filter for name or extension
|
||||
if (($filters['name'] && Utils::contains($payload['basename'], $filters['name'])) ||
|
||||
($filters['extension'] && Utils::contains($payload['extension'], $filters['extension']))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// filter types
|
||||
if ($filters['type']) {
|
||||
if (!in_array($payload['type'], $filter_type)) {
|
||||
@@ -1559,6 +1553,12 @@ class AdminController extends AdminBaseController
|
||||
}
|
||||
}
|
||||
|
||||
// Simple filter for name or extension
|
||||
if (($filters['name'] && Utils::contains($payload['basename'], $filters['name'])) ||
|
||||
($filters['extension'] && Utils::contains($payload['extension'], $filters['extension']))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Add children if any
|
||||
if ($fileInfo->getPathname() == $extra && is_array($children)) {
|
||||
$payload['children'] = array_values($children);
|
||||
|
||||
Reference in New Issue
Block a user