X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ffilters.php;h=2aed78b9455016de30a73928b1ecb5d9347aa451;hp=1b26cddabb587c8d6bdbb2372242e0cbc950aad2;hb=feb187d8f8a4dfe861ccece329260b9e186a6851;hpb=2abf1ab70c824b92934910d9f5da3c37fe089c47 diff --git a/inc/filters.php b/inc/filters.php index 1b26cddabb..2aed78b945 100644 --- a/inc/filters.php +++ b/inc/filters.php @@ -442,9 +442,15 @@ function FILTER_COMPILE_CONFIG ($code) { if (isConfigEntrySet($matches[1][$key])) { // Set it for caching $GLOBALS['compile_config'][$matches[1][$key]] = getConfig($matches[1][$key]); - } else { + } elseif (isConfigEntrySet('default_' . strtoupper($matches[1][$key]))) { + // Use default value + $GLOBALS['compile_config'][$matches[1][$key]] = getConfig('DEFAULT_' . strtoupper($matches[1][$key])); + } elseif (isMessageIdValid('DEFAULT_' . strtoupper($matches[1][$key]))) { // No config, try the language system $GLOBALS['compile_config'][$matches[1][$key]] = getMessage('DEFAULT_' . strtoupper($matches[1][$key])); + } else { + // Unhandled! + $GLOBALS['compile_config'][$matches[1][$key]] = '!' . $matches[1][$key] . '!'; } } // END - if