From 2db9ec1a94efd0a349228ca0a7b411b9ebbb7423 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 13 Mar 2009 03:11:40 +0000 Subject: [PATCH] Rewritten to function getConfigArray() --- inc/config-functions.php | 8 ++++++++ inc/functions.php | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/inc/config-functions.php b/inc/config-functions.php index 3358a302a9..66ae2e02f6 100644 --- a/inc/config-functions.php +++ b/inc/config-functions.php @@ -149,5 +149,13 @@ function loadConfiguration ($no="0") { } } +// Getter for whole $_CONFIG array +function getConfigArray () { + global $_CONFIG; + + // Return it + return $_CONFIG; +} + // [EOF] ?> diff --git a/inc/functions.php b/inc/functions.php index e202db15d3..8ae2ab07d0 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -211,7 +211,10 @@ function getTotalFatalErrors () { // Load a template file and return it's content (only it's name; do not use ' or ") function LOAD_TEMPLATE ($template, $return=false, $content=array()) { // Add more variables which you want to use in your template files - global $DATA, $_CONFIG, $username; + global $DATA, $username; + + // Get whole config array + $_CONFIG = getConfigArray(); // Make all template names lowercase $template = strtolower($template); -- 2.30.2