A lot while() conditions rewritten to SQL_FETCHARRAY(), see bug #107, @TODO tags...
[mailer.git] / inc / extensions / ext-cache.php
index 1ce2684b8ac372dd831ba9558887aa07afe63e96..17a13d08f378a84d14a192ab66d643bec97e8133 100644 (file)
@@ -235,17 +235,20 @@ case "update": // Update an extension
        }
        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;