From: Roland Häder Date: Fri, 13 Mar 2009 03:11:40 +0000 (+0000) Subject: Rewritten to function getConfigArray() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2db9ec1a94efd0a349228ca0a7b411b9ebbb7423;p=mailer.git Rewritten to function getConfigArray() --- 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);