* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team *
- * For more information visit: http://www.mxchange.org *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
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;
} elseif (!isExtensionActive('theme')) {
// Skip this loader
- return false;
+ return FALSE;
}
-// Next cached table is the referal system (themes)...
+// Next cached table are the themes
if (($GLOBALS['cache_instance']->loadCacheFile('themes')) && ($GLOBALS['cache_instance']->extensionVersionMatches('theme'))) {
- // Load referal system from cache
+ // Load themes
$cache = $GLOBALS['cache_instance']->getArrayFromCache();
// Restructure the array
// Remove dummy array
unset($cache);
-} elseif (isHtmlOutputMode()) {
+} elseif ((isHtmlOutputMode()) || (isRawOutputMode())) {
// Create cache file here
$GLOBALS['cache_instance']->init();