X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ffilters.php;h=198067b39d9e6433aedba0f1b02f6a147095eab5;hb=70d88449d385c3e979674fdbf1f2df9ceb6ba5f2;hp=20b7feeff218cdbb1b7171ff22e5e7c6472ca2c0;hpb=d9f35786166902b9bc3f402d4f2abeed5ae0528d;p=mailer.git diff --git a/inc/filters.php b/inc/filters.php index 20b7feeff2..198067b39d 100644 --- a/inc/filters.php +++ b/inc/filters.php @@ -107,7 +107,7 @@ function FILTER_FLUSH_FILTERS () { } // END - if // Shall we update usage counters (ONLY FOR DEBUGGING!) - if (getConfig('update_filter_usage') == 'Y') { + if ((isExtensionInstalledAndNewer('sql_patches', '0.6.0')) && (getConfig('update_filter_usage') == 'Y')) { // Update all counters foreach ($GLOBALS['cache_array']['filter']['counter'] as $filterName => $filterArray) { // Walk through all filters @@ -166,7 +166,7 @@ function FILTER_REDIRECT_TO_LOGOUT_SQL_PATCHES () { // Filter for auto-activation of a extension function FILTER_AUTO_ACTIVATE_EXTENSION ($data) { // Is this extension always activated? - if (getExtensionAlwaysActive() == 'Y') { + if (isExtensionAlwaysActive()) { // Then activate the extension //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "ext_name={$data['ext_name']}
"); doActivateExtension($data['ext_name']);