X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Floader%2Fload-config.php;h=0641a92eb1ac4693cf6723abc129912fdb6aeefe;hb=8202991f32bfb2056e94a11746c0b5308fe4a273;hp=169b9a3343cbafe9011652404cae8a617c8c1840;hpb=71a56610694ff72159223b14238bea230ebb7bcd;p=mailer.git diff --git a/inc/loader/load-config.php b/inc/loader/load-config.php index 169b9a3343..0641a92eb1 100644 --- a/inc/loader/load-config.php +++ b/inc/loader/load-config.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009, 2010 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2011 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 * @@ -38,11 +38,11 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); +} elseif (isInstallationPhase()) { + // Use this code if you don't want to run this cache loader on installation phase + return; } -// Use this code if you don't want to run this cache loader on installation phase -if (isInstallationPhase()) return; - // Next cached table is the configuration (config)... if (($GLOBALS['cache_instance']->loadCacheFile('config')) && ($GLOBALS['cache_instance']->extensionVersionMatches('sql_patches'))) { // Load config from cache @@ -62,8 +62,10 @@ if (($GLOBALS['cache_instance']->loadCacheFile('config')) && ($GLOBALS['cache_in // Create cache file here $GLOBALS['cache_instance']->init(); - // Load all modules and their data + // Query for all config entries $result = SQL_QUERY('SELECT * FROM `{?_MYSQL_PREFIX?}_config` ORDER BY `config` ASC', __FILE__, __LINE__); + + // .. and load them while ($content = SQL_FETCHARRAY($result)) { // Add row to cache file $GLOBALS['cache_instance']->addRow($content);