Extension updates should now work (cache refresh is broken)
authorRoland Häder <roland@mxchange.org>
Sat, 13 Dec 2008 16:16:03 +0000 (16:16 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 13 Dec 2008 16:16:03 +0000 (16:16 +0000)
inc/databases.php
inc/modules/admin/overview-inc.php

index 3e6ef11..d795eab 100644 (file)
@@ -114,7 +114,7 @@ define('USAGE_BASE', "usage");
 define('SERVER_URL', "http://www.mxchange.org");
 
 // Current SVN revision
-define('CURR_SVN_REVISION', "627");
+define('CURR_SVN_REVISION', "628");
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
index 9e1e319..b39e9a0 100644 (file)
@@ -94,9 +94,15 @@ function OUTPUT_STANDARD_OVERVIEW(&$result_tasks) {
                                        SQL_FREERESULT($result);
                                } // END - if
 
+                               // Test-drive extension in update mode
+                               include(sprintf("%sinc/extensions/ext-%s.php", PATH, $ext));
+                               
                                // Update extension if extension is installed and outdated
-                               //* DEBUG: */ print "ext={$ext},ver={$ext_ver}/".GET_EXT_VERSION($ext)."<br />\n";
-                               if ((!empty($ext_ver)) && (EXT_IS_ACTIVE($ext)) && (GET_EXT_VERSION($ext) > $ext_ver)) EXTENSION_UPDATE($file, $ext, $ext_ver);
+                               //* DEBUG: */ print "ext={$ext},ver={$EXT_VERSION}/".GET_EXT_VERSION($ext)."<br />\n";
+                               if ($EXT_VERSION > GET_EXT_VERSION($ext)) {
+                                       // Update the extension
+                                       EXTENSION_UPDATE($file, $ext, $ext_ver);
+                               } // END - if
 
                                if (!empty($cacheArray['active_extensions'][$ext])) {
                                        // Maybe we want to keept the current extension active?