Hopefully the final fixes
authorRoland Häder <roland@mxchange.org>
Mon, 4 Jul 2011 02:32:01 +0000 (02:32 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 4 Jul 2011 02:32:01 +0000 (02:32 +0000)
inc/extensions-functions.php

index fb21ed0c4996bab1c5f167ff63474fb187e4b168..53619443ea04258c5da03a41596399a1f92d5847 100644 (file)
@@ -682,7 +682,7 @@ function updateExtension ($ext_name, $ext_ver, $dry_run = false) {
        initExtensionSqls();
 
        // Check if version is updated
-       //* DEBUG: */ debugOutput(getCurrentExtensionName() . '/' . $ext_name . ':' . getThisExtensionVersion() . '/' . $ext_ver . '/' . intval(is_array($history)));
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, getCurrentExtensionName() . '/' . $ext_name . ':' . getThisExtensionVersion() . '/' . $ext_ver . '/' . intval(is_array($history)));
        if (((getThisExtensionVersion() != $ext_ver) || (isExtensionDryRun())) && (is_array($history))) {
                // Search for starting point (-1 for making 0.0 -> 0.0.0 switch work)
                $start = -1;
@@ -1312,10 +1312,11 @@ function isExtensionUpdateRunning ($ext_name) {
                // Walk through whole array
                foreach ($GLOBALS['ext_running_updates'] as $ext1=>$depends) {
                        // Is it found?
-                       if ($ext1 == $ext_name) {
+                       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext1=' . $ext1 . ',ext_name=' . $ext_name . ',depends=' . print_r($depends, true));
+                       if (($ext1 == $ext_name) || (in_array($ext_name, $depends))) {
                                // Found
                                $isRunning = true;
-                               logDebugMessage(__FUNCTION__, __LINE__, 'ext1=' . $ext1 . ',ext_name=' . $ext_name . ',isRunning=' . intval($isRunning));
+                               //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext1=' . $ext1 . ',ext_name=' . $ext_name . ',isRunning=' . intval($isRunning));
                                break;
                        } // END - if
                } // END - foreach