mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #1294 use branch number to generate download code for update
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user