is now located in ['config']
[mailer.git] / inc / functions.php
index 16a7194b80aedc83954c4b70732b2e423fda8573..78bd0a85409b62f7ff3237993f4a7eeebe421db2 100644 (file)
@@ -735,7 +735,10 @@ function generateCaptchaCode ($code, $type, $DATA, $uid) {
 
 // Loads an email template and compiles it
 function LOAD_EMAIL_TEMPLATE ($template, $content = array(), $UID = '0') {
-       global $DATA, $_CONFIG;
+       global $DATA;
+
+       // Our configuration is kept non-global here
+       $_CONFIG = getConfigArray();
 
        // Make sure all template names are lowercase!
        $template = strtolower($template);