X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fload_extensions.php;h=e2f44a0faba76513d6821c35fe08de9eb3bb967a;hb=0e899620c7a065952d6787c236fb2b33ae337d6a;hp=0f35a1acfd6b45a39c34da302f09785d42d68338;hpb=52e8a0635bd0b7c653845685c55e4e5f251375fe;p=mailer.git diff --git a/inc/load_extensions.php b/inc/load_extensions.php index 0f35a1acfd..e2f44a0fab 100644 --- a/inc/load_extensions.php +++ b/inc/load_extensions.php @@ -43,18 +43,15 @@ $EXT_CSS_FILES = array(); $ADD = ""; // Skip loading extensions -if ((!mxchange_installed) || (mxchange_installing)) return; +if ((!isBooleanConstantAndTrue('mxchange_installed')) || (isBooleanConstantAndTrue('mxchange_installing'))) return; // Load default sql_patches extension if present -if (file_exists(PATH."inc/extensions/ext-sql_patches.php") && is_readable(PATH."inc/extensions/ext-sql_patches.php")) -{ +if (file_exists(PATH."inc/extensions/ext-sql_patches.php") && is_readable(PATH."inc/extensions/ext-sql_patches.php")) { // Load it... $EXT_LOAD_MODE = ""; require_once(PATH."inc/extensions/ext-sql_patches.php"); $cacheArray['active_extensions'] = array('sql_patches' => 'Y'); // KEEP THIS ALWAYS ACTIVE! -} - else -{ +} else { // Initialize array for "always keep active extensions" $cacheArray['active_extensions'] = array(); } @@ -79,9 +76,7 @@ if (EXT_IS_ACTIVE("cache")) // Load language if ($cacheMode == "load") include(PATH."inc/language/cache_".GET_LANGUAGE().".php"); -} - else -{ +} else { $cacheMode = "no"; }