]> git.mxchange.org Git - mailer.git/commitdiff
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 3e6ef11fe774e315b9ac1fbe56d00a9f48a4c31c..d795eabe19fd18b6c7d27197f66d54a060b4ba96 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 9e1e3193cb4f071dfa3afddf9663e00e9b885cfb..b39e9a0c0c7ca2fa7727faa67316832a384391ff 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?