]> git.mxchange.org Git - mailer.git/blobdiff - inc/module-functions.php
Moved surfbar-related functions, unnessary array element removed
[mailer.git] / inc / module-functions.php
index 98eb9c1b46395521eed7fe86aad316f0aa5b4bb5..7918a233e8533e8237ce3c398a873fc1b1025b68 100644 (file)
@@ -230,7 +230,7 @@ function checkModulePermissions ($module = '') {
 
                        // Destroy cache here
                        // @TODO Rewrite this to a filter
-                       if ((getOutputMode() == '0') || (getOutputMode() == -1)) rebuildCache('modules', 'modules');
+                       if ((getScriptOutputMode() == '0') || (getScriptOutputMode() == -1)) rebuildCache('modules', 'modules');
 
                        // And reload data
                        unset($GLOBALS['module_status'][$module]);
@@ -239,7 +239,7 @@ function checkModulePermissions ($module = '') {
                        // Module not found we don't add it to the database
                        $ret = '404';
                }
-       } elseif (($ret == 'cache_miss') && (getOutputMode() == '0')) {
+       } elseif (($ret == 'cache_miss') && (getScriptOutputMode() == '0')) {
                // Rebuild the cache files
                rebuildCache('modules', 'modules');
        } elseif ($found === false) {
@@ -251,7 +251,7 @@ function checkModulePermissions ($module = '') {
                        $data['hidden'],
                        $data['mem_only'],
                        $data['admin_only'],
-                       getOutputMode()
+                       getScriptOutputMode()
                ));
        }