From: Roland Häder Date: Mon, 23 Aug 2010 13:46:59 +0000 (+0000) Subject: Fix for no longer working extension registration X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fe926f4aba9db3700c217f4170855e3b693b83db;p=mailer.git Fix for no longer working extension registration --- diff --git a/inc/extensions-functions.php b/inc/extensions-functions.php index 5ceb349621..6948e9b74a 100644 --- a/inc/extensions-functions.php +++ b/inc/extensions-functions.php @@ -245,7 +245,7 @@ function registerExtension ($ext_name, $taskId, $dry_run = false, $logout = true // Does this extension exists? //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'currName=' . getCurrentExtensionName()); - if (loadExtension(getCurrentExtensionName(), 'register', '', isExtensionDryRun())) { + if (loadExtension(getCurrentExtensionName(), 'register', '0.0', isExtensionDryRun())) { // Set current extension name again setCurrentExtensionName($ext_name); @@ -458,7 +458,7 @@ function doExtensionSqls ($ext_id, $load_mode) { // Load extension in detected mode //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext_name[' . $ext_id . ']=' . getCurrentExtensionName() . ',load_mode=' . $load_mode); - loadExtension(getCurrentExtensionName(), $load_mode, '', false); + loadExtension(getCurrentExtensionName(), $load_mode, '0.0', false); // Init these SQLs initSqls(); diff --git a/inc/filters.php b/inc/filters.php index 9b9bb0e3e9..2a11b82da0 100644 --- a/inc/filters.php +++ b/inc/filters.php @@ -523,7 +523,7 @@ function FILTER_COMPILE_EXPRESSION_CODE ($code) { $code = call_user_func($commandFunction, $data); } else { // Unsupported command detected - debug_report_bug(__FUNCTION__, __LINE__, 'Command=' . $cmd . ', callback=' . $callback . ', extra=' . $extraFunction . ' is unsupported.'); + logDebugMessage(__FUNCTION__, __LINE__, 'Command=' . $cmd . ', callback=' . $callback . ', extra=' . $extraFunction . ' is unsupported.'); } } // END - foreach } // END - if