From a40bd3f6c6591adfc9780ec92d35dd32a97cc674 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Fri, 17 Dec 2021 10:53:08 +0100 Subject: [PATCH] Updated EA_Controller to use the script_vars helper function --- application/core/EA_Controller.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/core/EA_Controller.php b/application/core/EA_Controller.php index 595ccedd..c4eb0036 100644 --- a/application/core/EA_Controller.php +++ b/application/core/EA_Controller.php @@ -73,7 +73,7 @@ class EA_Controller extends CI_Controller { $this->configure_language(); - $this->load_common_js_config(); + $this->load_common_script_vars(); } /** @@ -92,11 +92,11 @@ class EA_Controller extends CI_Controller { } /** - * Load common JS config for all requests. + * Load common script vars for all requests. */ - private function load_common_js_config() + private function load_common_script_vars() { - js_config([ + script_vars([ 'base_url' => config('base_url'), 'index_page' => config('index_page'), 'csrf_token' => $this->security->get_csrf_hash(),