}
break;
+case "modify": // When the extension got modified
+ break;
+
case "test": // For testing purposes. For details see file inc/modules/admin/what-extensions.php, arround line 305.
break;
default: // Do stuff when extension is loaded
// Create instance on class
- if ($GLOBALS['cacheMode'] != "init") {
+ if ($GLOBALS['cache_mode'] != "init") {
// Initialize cache system only when it's needed
- $GLOBALS['cache_instance'] = new CacheSystem(getConfig('cache_update'), constant('PATH')."inc/".getConfig('cache_path'), getConfig('cache_tested'));
+ $GLOBALS['cache_instance'] = new CacheSystem(getConfig('cache_update'), "inc/".getConfig('cache_path'), getConfig('cache_tested'));
if ($GLOBALS['cache_instance']->getStatus() != "done") {
// Failed to initialize cache sustem
- addFatalMessage(__FILE__, __LINE__, "(<font color=\"#0000aa\">".__LINE__."</font>): ".CACHE_CANNOT_INITIALIZE);
+ addFatalMessage(__FILE__, __LINE__, "(<font color=\"#0000aa\">".__LINE__."</font>): ".getMessage('CACHE_CANNOT_INITIALIZE'));
} // END - if
} // END - if
break;