From 59062ca942c8d3f32e3337663c1c053978b48501 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 13 Dec 2008 16:16:03 +0000 Subject: [PATCH] Extension updates should now work (cache refresh is broken) --- inc/databases.php | 2 +- inc/modules/admin/overview-inc.php | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/inc/databases.php b/inc/databases.php index 3e6ef11fe7..d795eabe19 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -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); diff --git a/inc/modules/admin/overview-inc.php b/inc/modules/admin/overview-inc.php index 9e1e3193cb..b39e9a0c0c 100644 --- a/inc/modules/admin/overview-inc.php +++ b/inc/modules/admin/overview-inc.php @@ -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)."
\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)."
\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? -- 2.39.5