X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ffilter-functions.php;h=5088da4b23bb3f860f015ca70b36fe1d1bd12a89;hp=4c3cae095dd75dd03a5e461401e51e0f1501191b;hb=744a2d99cf8759ecd219214bc98f0d32ae038ec1;hpb=7cb246c51e8634735aaf24e546bcbc46c5ce3833 diff --git a/inc/filter-functions.php b/inc/filter-functions.php index 4c3cae095d..5088da4b23 100644 --- a/inc/filter-functions.php +++ b/inc/filter-functions.php @@ -118,9 +118,9 @@ ORDER BY // Init filters registerFilter('init', 'LOAD_CONFIGURATION'); + registerFilter('init', 'LOAD_RUNTIME_INCLUDES'); registerFilter('init', 'INIT_EXTENSIONS'); registerFilter('init', 'INIT_RANDOMIZER'); - registerFilter('init', 'LOAD_RUNTIME_INCLUDES'); registerFilter('init', 'INIT_RANDOM_NUMBER'); registerFilter('init', 'CHECK_SVN_REVISION'); registerFilter('init', 'RUN_DAILY_RESET'); @@ -163,7 +163,7 @@ ORDER BY // Compiling code registerFilter('compile_code', 'COMPILE_CONFIG'); - registerFilter('compile_code', 'COMPILE_EXTENSION'); + registerFilter('compile_code', 'COMPILE_EXPRESSION_CODE'); // Generic extension update filters registerFilter('extension_update', 'UPDATE_EXTENSION_DATA'); @@ -232,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 @@ -248,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;