Reverted last commit, was not possible as filter chains can run within filter chains
authorRoland Häder <roland@mxchange.org>
Wed, 31 Jul 2013 02:02:33 +0000 (02:02 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 31 Jul 2013 02:02:33 +0000 (02:02 +0000)
inc/filter-functions.php

index f60544c..dc97d8e 100644 (file)
@@ -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;
 }