X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodule-functions.php;h=7918a233e8533e8237ce3c398a873fc1b1025b68;hb=46aeda7c31aefbe313f5c4bcf7cdbef4f1826fcc;hp=98eb9c1b46395521eed7fe86aad316f0aa5b4bb5;hpb=4394f29aa38d7bc352a00b797a855f32c2eac8a2;p=mailer.git diff --git a/inc/module-functions.php b/inc/module-functions.php index 98eb9c1b46..7918a233e8 100644 --- a/inc/module-functions.php +++ b/inc/module-functions.php @@ -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() )); }