X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fconfig-functions.php;h=14b6d07254ed65f43094945e0e08aa61c5d165a3;hp=fe1e3d7058fa4bfaeef515a234573d22846de5e5;hb=9a0bf5916f744dffd4123f7b629e3de7dbb4c33b;hpb=fe1e1d3b8291b1ca991e3d2e639cb28097c53d74 diff --git a/inc/config-functions.php b/inc/config-functions.php index fe1e3d7058..14b6d07254 100644 --- a/inc/config-functions.php +++ b/inc/config-functions.php @@ -50,15 +50,21 @@ function initConfig () { trigger_error(sprintf("[%s:%s] Configuration is already initialized.", __FUNCTION__, __LINE__)); } // END - if - // Set a minimum dummy configuration + // Set a minimum of configuration, required to by-pass some errors triggers in getConfig() $GLOBALS['config'] = array( - 'code_length' => 0, - 'patch_level' => 0, - 'last_update' => time(), - 'DEBUG_MODE' => 'N', - 'sql_count' => 0, - 'num_templates' => 0, - 'default_theme' => 'default', + 'code_length' => 0, + 'patch_level' => 0, + 'last_update' => time(), + 'DEFAULT_LANG' => 'de', + 'DEBUG_MODE' => 'N', + 'DEBUG_RESET' => 'N', + 'DEBUG_MONTHLY' => 'N', + 'DEBUG_WEEKLY' => 'N', + 'DEBUG_REGEX' => 'N', + 'ADMIN_REGISTERED' => 'N', + 'sql_count' => 0, + 'num_templates' => 0, + 'default_theme' => 'default', ); }