// 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');
registerFilter('page_footer', 'HANDLE_FATAL_ERRORS');
registerFilter('page_footer', 'DISPLAY_COPYRIGHT');
registerFilter('page_footer', 'DISPLAY_PARSING_TIME');
+
+ // Member login check. Always keep FETCH_USER_DATA as first entry!
+ registerFilter('member_login_check', 'FETCH_USER_DATA');
}
// "Registers" a new filter function
// 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
// "Runs" the given filters, data is optional and can be any type of data
function runFilterChain ($filterName, $data = null) {
// Is that filter chain there?
- if (!isset($GLOBALS['cache_array']['filter']['chains'][$filterName])) {
+ if ((!isset($GLOBALS['cache_array']['filter']['chains'][$filterName])) && (isDebugModeEnabled())) {
// 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 <strong>' . $filterName . '</strong> not found!');