From 68bec9d328f34715dfb51718cb6e7f6d48ce1e8a Mon Sep 17 00:00:00 2001 From: Awilum Date: Mon, 1 Jul 2019 13:05:30 +0300 Subject: [PATCH] Flextype Admin Panel: Settings #175 #165 - updates --- site/plugins/admin/app/Controllers/SettingsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/plugins/admin/app/Controllers/SettingsController.php b/site/plugins/admin/app/Controllers/SettingsController.php index 3f6dd258..7909c086 100644 --- a/site/plugins/admin/app/Controllers/SettingsController.php +++ b/site/plugins/admin/app/Controllers/SettingsController.php @@ -31,7 +31,7 @@ class SettingsController extends Controller public function index(/** @scrutinizer ignore-unused */ Request $request, Response $response) : Response { $entries = []; - foreach ($this->entries->fetchAll('', 'date', 'DESC') as $entry) { + foreach ($this->entries->fetchAll('', ['order_by' => ['field' => 'date', 'direction' => 'desc']]) as $entry) { $entries[$entry['slug']] = $entry['title']; }