From fe926f4aba9db3700c217f4170855e3b693b83db Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 23 Aug 2010 13:46:59 +0000 Subject: [PATCH] Fix for no longer working extension registration --- inc/extensions-functions.php | 4 ++-- inc/filters.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5