projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
25fa7dc
)
debug_report_bug() was to 'hard' here.
author
Roland Häder
<roland@mxchange.org>
Thu, 27 Aug 2009 00:48:07 +0000
(
00:48
+0000)
committer
Roland Häder
<roland@mxchange.org>
Thu, 27 Aug 2009 00:48:07 +0000
(
00:48
+0000)
inc/filters.php
patch
|
blob
|
history
diff --git
a/inc/filters.php
b/inc/filters.php
index 39d86d19f17108a74c9bdc95e78671105882019b..6457c4b0b8c49e769624ec0bbbd56dc87a47a82c 100644
(file)
--- a/
inc/filters.php
+++ b/
inc/filters.php
@@
-160,7
+160,7
@@
function registerFilter ($filterName, $filterFunction, $silentAbort = true, $for
// Is that filter already there?
if ((isset($GLOBALS['filters']['chains'][$filterName][$filterFunction])) && (!$force)) {
// Then abort here
// Is that filter already there?
if ((isset($GLOBALS['filters']['chains'][$filterName][$filterFunction])) && (!$force)) {
// Then abort here
- if (
!$silentAbort
) {
+ if (
$silentAbort === false
) {
addFatalMessage(__FUNCTION__, __LINE__, getMessage('FILTER_FAILED_ALREADY_ADDED'), array($filterFunction, $filterName));
} // END - if
addFatalMessage(__FUNCTION__, __LINE__, getMessage('FILTER_FAILED_ALREADY_ADDED'), array($filterFunction, $filterName));
} // END - if
@@
-209,7
+209,10
@@
function runFilterChain ($filterName, $data = null, $silentAbort = true) {
// Is that filter chain there?
if (!isset($GLOBALS['filters']['chains'][$filterName])) {
// We should find all these non-existing filter chains
// Is that filter chain there?
if (!isset($GLOBALS['filters']['chains'][$filterName])) {
// We should find all these non-existing filter chains
- debug_report_bug('Filter chain '.$filterName.' not found!');
+ DEBUG_LOG(__FUNCTION__, __LINE__, 'Filter chain ' . $filterName . ' not found!');
+
+ // Abort here
+ return false;
} // END - if
// Default return value
} // END - if
// Default return value