From c25fce65b19dd59981de8a52345b997cd838d817 Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 22 Jan 2021 17:10:57 +0100 Subject: [PATCH] fixes #1294 use branch number to generate download code for update --- admin/include/updates.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/admin/include/updates.class.php b/admin/include/updates.class.php index 57530e2a7..9b837e90b 100644 --- a/admin/include/updates.class.php +++ b/admin/include/updates.class.php @@ -465,8 +465,7 @@ class updates if ($step == 2) { - preg_match('/(\d+\.\d+)\.(\d+)/', PHPWG_VERSION, $matches); - $code = $matches[1].'.x_to_'.$upgrade_to; + $code = get_branch_from_version(PHPWG_VERSION).'.x_to_'.$upgrade_to; $dl_code = str_replace(array('.', '_'), '', $code); $remove_path = $code; $obsolete_list = 'obsolete.list';