]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
Wrapper function isBegRallyeEnabled() introduced, rewrites to make usage of isExtensi...
[mailer.git] / inc / wrapper-functions.php
index 770b3509585fdb111f792e0487125e39f5fba83d..748a49a34a14b1ed9f8e8aa380f320ab1e43b1e8 100644 (file)
@@ -1687,7 +1687,7 @@ function isProxyUsed () {
        // Do we have cache?
        if (!isset($GLOBALS['is_proxy_used'])) {
                // Determine it
-               $GLOBALS['is_proxy_used'] = ((getExtensionVersion('sql_patches') >= '0.4.3') && (getConfig('proxy_host') != '') && (getConfig('proxy_port') > 0));
+               $GLOBALS['is_proxy_used'] = ((isExtensionInstalledAndNewer('sql_patches', '0.4.3')) && (getConfig('proxy_host') != '') && (getConfig('proxy_port') > 0));
        } // END - if
 
        // Return cache
@@ -1706,5 +1706,17 @@ function ifPostContainsSelections ($element = 'sel') {
        return $GLOBALS['post_contains_selections'][$element];
 }
 
+// Checks wether verbose_sql is Y and returns true/false if so
+function isVerboseSqlEnabled () {
+       // Do we have cache?
+       if (!isset($GLOBALS['is_verbose_sql_enabled'])) {
+               // Determine it
+               $GLOBALS['is_verbose_sql_enabled'] = ((isExtensionInstalledAndNewer('sql_patches', '0.0.7')) && (getConfig('verbose_sql') == 'Y'));
+       } // END - if
+
+       // Return cache
+       return $GLOBALS['is_verbose_sql_enabled'];
+}
+
 // [EOF]
 ?>