From 813de7eb3cddb93b543fe72e6772df1aab25c7dd Mon Sep 17 00:00:00 2001 From: tobi132 Date: Tue, 23 Jul 2019 07:45:21 +0200 Subject: [PATCH] Add configLua function --- system/functions.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/system/functions.php b/system/functions.php index 1ba22520..e7fbe1b5 100644 --- a/system/functions.php +++ b/system/functions.php @@ -1063,6 +1063,15 @@ function config($key) { return @$config[$key]; } +function configLua($key) { + global $config; + if (is_array($key)) { + return $config['lua'][$key[0]] = $key[1]; + } + + return @$config['lua'][$key]; +} + function clearCache() { global $template_name;