X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ffilter-functions.php;h=d096c8e43bb0c1fe74a1bfb1fcc021254a44b247;hp=7c88b79ca9e814abb561b2946335c165349e1ada;hb=19967f81fccfca18639737f9425fd145468d2778;hpb=086762b9606889fbda59d946b7b557d764ec2c0e diff --git a/inc/filter-functions.php b/inc/filter-functions.php index 7c88b79ca9..d096c8e43b 100644 --- a/inc/filter-functions.php +++ b/inc/filter-functions.php @@ -1,7 +1,7 @@ '; $GLOBALS['cache_array']['filter']['chains'][$filterName][$filterFunction] = 'A'; - $GLOBALS['cache_array']['filter']['counter'][$filterName][$filterFunction] = 0; + $GLOBALS['cache_array']['filter']['counter'][$filterName][$filterFunction] = '0'; } // END - if } @@ -228,7 +232,7 @@ function unregisterFilter ($filterName, $filterFunction, $force = false, $dry_ru // Is that filter there? if ((!isset($GLOBALS['cache_array']['filter']['chains'][$filterName][$filterFunction])) && ($force === false)) { // Not found, so abort here - addFatalMessage(__FUNCTION__, __LINE__, getMessage('FILTER_FAILED_NOT_REMOVED'), array($filterFunction, $filterName)); + addFatalMessage(__FUNCTION__, __LINE__, sprintf(getMessage('FILTER_FAILED_NOT_REMOVED'), $filterFunction, $filterName)); return false; } // END - if @@ -244,11 +248,11 @@ function unregisterFilter ($filterName, $filterFunction, $force = false, $dry_ru function runFilterChain ($filterName, $data = null) { // Is that filter chain there? if (!isset($GLOBALS['cache_array']['filter']['chains'][$filterName])) { - // We should find all these non-existing filter chains - //* Only for tracking: */ if ($filterName != 'sql_admin_extra_data') { - //* Only for tracking: */ debug_report_bug('Filter chain ' . $filterName . ' not found!'); - //* Only for tracking: */ } - /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Filter chain ' . $filterName . ' not found!'); + // Log not found filters in debug-mode + if (isDebugModeEnabled()) { + // Log it away... + logDebugMessage(__FUNCTION__, __LINE__, 'Filter chain ' . $filterName . ' not found!'); + } // END - if // Abort here and return content return $data;