]> git.mxchange.org Git - mailer.git/blobdiff - inc/config-functions.php
Installation page=welcome rewritten to use div
[mailer.git] / inc / config-functions.php
index 3358a302a9eedee88469c92e1048188bb11f233b..b977e2af621fc45d220b16ea487d2af6cf9e0205 100644 (file)
@@ -127,10 +127,10 @@ function loadConfiguration ($no="0") {
                } // END - foreach
 
                // Count cache hits if exists
-               if ((isset($_CONFIG['cache_hits'])) && (EXT_IS_ACTIVE("cache"))) {
+               if ((isset($_CONFIG['cache_hits'])) && (EXT_IS_ACTIVE('cache'))) {
                        $_CONFIG['cache_hits']++;
                } // END - if
-       } elseif ((!EXT_IS_ACTIVE("cache")) || (!isset($GLOBALS['cache_array']['config'][$no]))) {
+       } elseif ((!EXT_IS_ACTIVE('cache')) || (!isset($GLOBALS['cache_array']['config'][$no]))) {
                // Load config from DB
                $result_config = SQL_QUERY_ESC("SELECT * FROM `{!_MYSQL_PREFIX!}_config` WHERE config=%d LIMIT 1",
                        array(bigintval($no)), __FUNCTION__, __LINE__);
@@ -149,5 +149,13 @@ function loadConfiguration ($no="0") {
        }
 }
 
+// Getter for whole $_CONFIG array
+function getConfigArray () {
+       global $_CONFIG;
+
+       // Return it
+       return $_CONFIG;
+}
+
 // [EOF]
 ?>