]> git.mxchange.org Git - mailer.git/blobdiff - inc/loader/load_cache-
Rewrite of language strings
[mailer.git] / inc / loader / load_cache-
index 548c05e6b8ed1a28aa4ef03c6f3adb477de5357d..c122f20eaf09c5698bb8647fcf65b5c684776bac 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 10/24/2009 *
- * ===============                              Last change: 10/24/2009 *
+ * Mailer v0.2.1-FINAL                                Start: 10/24/2009 *
+ * ===================                          Last change: 10/24/2009 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : load_cache-                                      *
@@ -41,13 +41,16 @@ if (!defined('__SECURITY')) {
        die();
 } // END - if
 
+// Use this code if you don't want to run this cache loader on installation phase
+//if (isInstallationPhase()) return;
+
 // Let's start with the admins table...
 if (($GLOBALS['cache_instance']->loadCacheFile('foo')) && ($GLOBALS['cache_instance']->extensionVersionMatches('foo'))) {
        // Load cache
        $GLOBALS['cache_array']['foo'] = $GLOBALS['cache_instance']->getArrayFromCache();
-} elseif (getOutputMode() != '1') {
+} elseif (getOutputMode() != 1) {
        // Create cache file
-       $GLOBALS['cache_instance']->init('FOO');
+       $GLOBALS['cache_instance']->init();
 
        // Load every data from DB to cache file
        $add = runFilterChain('sql_admin_extra_data');
@@ -65,9 +68,6 @@ if (($GLOBALS['cache_instance']->loadCacheFile('foo')) && ($GLOBALS['cache_insta
        // Close cache
        $GLOBALS['cache_instance']->storeExtensionVersion('foo');
        $GLOBALS['cache_instance']->finalize();
-
-       // Include loader again
-       loadInclude('inc/loader/'.basename(__FILE__));
 }
 
 // [EOF]