From: Roland Häder Date: Wed, 31 Jul 2013 02:02:33 +0000 (+0000) Subject: Reverted last commit, was not possible as filter chains can run within filter chains X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=56336b0ee3ca50e28209213ecfefa2f0188e43ea Reverted last commit, was not possible as filter chains can run within filter chains --- diff --git a/inc/filter-functions.php b/inc/filter-functions.php index f60544c24e..dc97d8ec41 100644 --- a/inc/filter-functions.php +++ b/inc/filter-functions.php @@ -435,21 +435,13 @@ function isFilterChainAborted () { } // Interrupts the filter chain by enabling flag 'filter_chain_aborted' -// @TODO Add a filter chain here? E.g.: 'filter_chain_interrupted' function interruptFilterChain () { - // Make sure that interrupted filter chains are not interrupted twice - assert((!isset($GLOBALS['filter_chain_interrupted'])) || ($GLOBALS['filter_chain_interrupted'] === FALSE)); - // Set it $GLOBALS['filter_chain_interrupted'] = TRUE; } // Continues the filter chain by disabling flag 'filter_chain_aborted' -// @TODO Add a filter chain here? E.g.: 'filter_chain_continued' function continueFilterChain () { - // Make sure that continued filter chains are not continued twice - assert((!isset($GLOBALS['filter_chain_interrupted'])) || ($GLOBALS['filter_chain_interrupted'] === TRUE)); - // Set it $GLOBALS['filter_chain_interrupted'] = FALSE; }