X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Floader%2Fload_cache-modreg.php;h=b37d67f01777f11cd4101da2ef51d667a81c299c;hb=444470f309a050293341c95917beb89d60a394b9;hp=03489db89917261cbee2f071354aa86c55200102;hpb=b7aada7890a3c7d1c1da4d2b36d8d7683fa61c06;p=mailer.git diff --git a/inc/loader/load_cache-modreg.php b/inc/loader/load_cache-modreg.php index 03489db899..b37d67f017 100644 --- a/inc/loader/load_cache-modreg.php +++ b/inc/loader/load_cache-modreg.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Mehr Cache-Dateien nachladen * * -------------------------------------------------------------------- * - * * + * $Revision:: $ * + * $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 - 2008 by Roland Haeder * * For more information visit: http://www.mxchange.org * @@ -33,12 +38,12 @@ // Some security stuff... if (!defined('__SECURITY')) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); } // Next cached table is the module registry (mod_reg)... -if (($GLOBALS['cache_instance']->loadCacheFile("modreg")) && ($GLOBALS['cache_instance']->extensionVersionMatches("sql_patches"))) { +if (($GLOBALS['cache_instance']->loadCacheFile('modreg')) && ($GLOBALS['cache_instance']->extensionVersionMatches('sql_patches'))) { // Load cache $GLOBALS['cache_array']['modules'] = $GLOBALS['cache_instance']->getArrayFromCache(); @@ -63,20 +68,20 @@ if (($GLOBALS['cache_instance']->loadCacheFile("modreg")) && ($GLOBALS['cache_in } // END - if } // END - foreach unset($modArray); -} elseif ((getConfig('cache_modreg') == "Y") && ($GLOBALS['output_mode'] != "1") && ($GLOBALS['output_mode'] != "-1")) { +} elseif ((getConfig('cache_modreg') == 'Y') && (getOutputMode() != '1') && (getOutputMode() != '-1')) { // Create cache file here - $GLOBALS['cache_instance']->init("MODULES"); - $GLOBALS['cache_instance']->storeExtensionVersion("sql_patches"); + $GLOBALS['cache_instance']->init('MODULES'); + $GLOBALS['cache_instance']->storeExtensionVersion('sql_patches'); // Load all modules and their data - if (GET_EXT_VERSION("sql_patches") >= "0.3.6") { + if (GET_EXT_VERSION('sql_patches') >= '0.3.6') { // Load has_menu - $result = SQL_QUERY("SELECT id, module, title, locked, hidden, admin_only, title, mem_only, has_menu -FROM `{!_MYSQL_PREFIX!}_mod_reg` ORDER BY `id`", __FILE__, __LINE__); + $result = SQL_QUERY('SELECT id, module, title, locked, hidden, admin_only, title, mem_only, has_menu +FROM `{!_MYSQL_PREFIX!}_mod_reg` ORDER BY `id`', __FILE__, __LINE__); } else { // Don't load has_menu - $result = SQL_QUERY("SELECT id, module, title, locked, hidden, admin_only, title, mem_only -FROM `{!_MYSQL_PREFIX!}_mod_reg` ORDER BY `id`", __FILE__, __LINE__); + $result = SQL_QUERY('SELECT id, module, title, locked, hidden, admin_only, title, mem_only +FROM `{!_MYSQL_PREFIX!}_mod_reg` ORDER BY `id`', __FILE__, __LINE__); } // Cache all data