Rewritten to function getConfigArray()
[mailer.git] / inc / functions.php
index e202db15d3e7750537b78684bf6b0ae533f3c5be..8ae2ab07d0ee3797abdb55f3403b84807867f788 100644 (file)
@@ -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);