From a57f50dbc5853a871ca11b40fd44fec7e8a214ae Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 28 Jun 2019 14:37:58 +0300 Subject: [PATCH] Flextype Admin Panel: Entries #175 #165 - Collections implementation - next round --- site/plugins/admin/app/Controllers/EntriesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/plugins/admin/app/Controllers/EntriesController.php b/site/plugins/admin/app/Controllers/EntriesController.php index 5a61be8a..65205cec 100644 --- a/site/plugins/admin/app/Controllers/EntriesController.php +++ b/site/plugins/admin/app/Controllers/EntriesController.php @@ -62,7 +62,7 @@ class EntriesController extends Controller $response, 'plugins/admin/views/templates/content/entries/index.html', [ - 'entries_list' => $this->entries->fetchAll($this->getEntryID($query), 'date', 'DESC'), + 'entries_list' => $this->entries->fetchAll($this->getEntryID($query), ['order_by' => ['field' => 'date', 'direction' => 'desc']]), 'id_current' => $this->getEntryID($query), 'menu_item' => 'entries', 'parts' => $parts,