<?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- *
* $Date:: $ *
* $Tag:: 0.2.1-FINAL $ *
* $Author:: $ *
- * Needs to be in all Files and every File needs "svn propset *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
return;
}
+// 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('imprint')) && ($GLOBALS['cache_instance']->extensionVersionMatches('imprint'))) {
// Load cache
$GLOBALS['cache_array']['imprint'] = $GLOBALS['cache_instance']->getArrayFromCache();
-} elseif (getOutputMode() != '1') {
+} elseif (isHtmlOutputMode()) {
// Create cache file
- $GLOBALS['cache_instance']->init('imprint');
+ $GLOBALS['cache_instance']->init();
// Load every data from DB to cache file
$add = runFilterChain('sql_admin_extra_data');
// Close cache
$GLOBALS['cache_instance']->storeExtensionVersion('imprint');
$GLOBALS['cache_instance']->finalize();
-
- // Include loader again
- loadInclude('inc/loader/'.basename(__FILE__));
}
// [EOF]