X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ffilter-functions.php;h=1924031205bfac306f9d4272a8ab69c647502896;hp=bbcdb3711e000449ef81e76274ad601518ed8e1b;hb=48ba551f2064ac7983804b9edef4af21bc23c534;hpb=0f3a135204757cc8750262871c8e62c42300acb4 diff --git a/inc/filter-functions.php b/inc/filter-functions.php index bbcdb3711e..1924031205 100644 --- a/inc/filter-functions.php +++ b/inc/filter-functions.php @@ -17,7 +17,7 @@ * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -225,10 +225,7 @@ function registerFilter ($filterName, $filterFunction, $silentAbort = true, $for //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'REGISTER: filterName=' . $filterName . ',filterFunction=' . $filterFunction); $GLOBALS['cache_array']['filter']['chains'][$filterName][$filterFunction] = 'A'; $GLOBALS['cache_array']['filter']['counter'][$filterName][$filterFunction] = '0'; - } elseif (($silentAbort === false) && (!function_exists($filterFunction))) { - // Please report them all! - debug_report_bug(__FUNCTION__, __LINE__, 'filterName=' . $filterName . ',filterFunction=' . $filterFunction . ',silentAbort=false,force=' . intval($force) . ',dry_run=' . intval($dry_run) . ' - NOT FOUND!'); - } + } // END - if //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ENTRY: filterName=' . $filterName . ',filterFunction=' . $filterFunction . ' - EXIT!'); } @@ -288,11 +285,8 @@ function runFilterChain ($filterName, $filterData = NULL) { if (($active == 'Y') || ($active == 'A') || ((in_array($filterName, array('shutdown','extension_remove','post_extension_run_sql'))) && ($active == 'R'))) { // Is this filter there? if (!function_exists($filterFunction)) { - // Unregister it - unregisterFilter(__FUNCTION__, __LINE__, $filterName, $filterFunction); - - // Skip this entry - continue; + // Should be fixed + debug_report_bug(__FUNCTION__, __LINE__, 'filterName=' . $filterName . ',filterFunction=' . $filterFunction . ' - AUTO-UNREGISTERED!'); } // END - if // Call the filter chain