if (!defined('__SECURITY')) {
die();
} elseif (isInstallationPhase()) {
- // Use this code if you don't want to run this cache loader on installation phase
- return;
+ // Do not run in installation phase
+ return FALSE;
}
// Next cached table is the module registry (mod_reg)...
$GLOBALS['cache_instance']->removeCacheFile();
// We should fix this
- reportBug(__FILE__, __LINE__, 'modArray=<pre>' . print_r($modArray, true) . '</pre>Please try to reload to fix this.');
+ reportBug(__FILE__, __LINE__, 'modArray=<pre>' . print_r($modArray, TRUE) . '</pre>Please try to reload to fix this.');
} // END - if
// Rewrite some parts
} // END - foreach
} // END - foreach
unset($modArray);
-} elseif (isHtmlOutputMode()) {
+} elseif ((isHtmlOutputMode()) || (isRawOutputMode())) {
// Create cache file here
$GLOBALS['cache_instance']->init();
- // Do we have up-to-date ext-sql_patches?
+ // Is there up-to-date ext-sql_patches?
if (isExtensionInstalledAndNewer('sql_patches', '0.3.6')) {
// Yes, has_menu shall be there
$result = SQL_QUERY('SELECT