From 7b110aaf50c8e613c3ae7dcd92bbe80194629c4f Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Mon, 9 Sep 2024 14:16:37 +0200 Subject: [PATCH] adds the needed phrase to the api/frontend/v1/Cms Controller --- application/controllers/api/frontend/v1/Cms.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/controllers/api/frontend/v1/Cms.php b/application/controllers/api/frontend/v1/Cms.php index 5ba635a8a..afebe3995 100644 --- a/application/controllers/api/frontend/v1/Cms.php +++ b/application/controllers/api/frontend/v1/Cms.php @@ -49,6 +49,11 @@ class Cms extends FHCAPI_Controller $this->load->library('CmsLib'); + // Loads phrases system + $this->loadPhrases([ + 'global' + ]); + } //------------------------------------------------------------------------------------------------------------------ @@ -105,6 +110,7 @@ class Cms extends FHCAPI_Controller //todo: there is the method news and getNews but only one should exist public function news() { + // form validation $this->load->library('form_validation'); $this->form_validation->set_data($_GET);