X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fconfig-functions.php;h=3148d37ff1ff0b5fa06fce7c4bfbd5f8f68b1e72;hb=ebebf74b951f64a41c14d0bdb44368a96721ddbe;hp=c251e8dda083bd4fafff50c417fb1e2f570b096c;hpb=c4823d28fd0bd22250b16d73f2034f36fc54abda;p=mailer.git diff --git a/inc/config-functions.php b/inc/config-functions.php index c251e8dda0..3148d37ff1 100644 --- a/inc/config-functions.php +++ b/inc/config-functions.php @@ -90,7 +90,7 @@ function setConfigEntry ($configEntry, $value) { // Checks wether the given config entry is set function isConfigEntrySet ($configEntry) { - //* DEBUG: */ debugOutput(__FUNCTION__.':'.$configEntry.'='.intval(isset($GLOBALS['config'][$configEntry]))); + //* DEBUG: */ debugOutput(__FUNCTION__ . ':' . $configEntry . '=' . intval(isset($GLOBALS['config'][$configEntry]))); return (isset($GLOBALS['config'][$configEntry])); } @@ -218,7 +218,7 @@ function updateOldConfigFile () { $new = strtolower($new); } // END - if - /// ... and write it to the new config + // ... and write it to the new config //* DEBUG: */ debugOutput('function=' . $function . ',new=' . $new . ',comment=' . $comment); changeDataInInclude(getCachePath() . 'config-local.php', $comment, $function . "('" . $oldNew . "', \"", '");', constant($new), 0); //* DEBUG: */ debugOutput('CHANGED!'); @@ -274,6 +274,8 @@ function updateOldConfigFile () { function updateConfiguration ($entries, $values, $updateMode='', $config = '0') { // Do not update config in CSS mode if ((isCssOutputMode()) || (isRawOutputMode()) || (isInstallationPhase())) { + // This logger line may be very noisy + /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Not updating configuration. entries[]=' . gettype($entries) . ',values[]=' . gettype($values) . ',updateMode=' . $updateMode . ',config=' . $config . ',isCssOutputMode()=' . intval(isCssOutputMode()) . ',isRawOutputMode()=' . intval(isRawOutputMode()) . ',isInstallationPhase()=' . intval(isInstallationPhase())); return; } // END - if @@ -350,8 +352,10 @@ function updateConfiguration ($entries, $values, $updateMode='', $config = '0') // Filter for loading configuration function FILTER_LOAD_CONFIGURATION ($no = '0') { - // Is the value null, fix it :( - if (is_null($no)) $no = '0'; + // Is the value null, it comes from the 'init' filter chain + if (is_null($no)) { + $no = '0'; + } // END - if // Check for cache extension, cache-array and if the requested configuration is in cache if ((isset($GLOBALS['cache_array']['config'][$no])) && (is_array($GLOBALS['cache_array']['config'][$no]))) {