mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 08:43:31 +02: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)
|
if ($step == 2)
|
||||||
{
|
{
|
||||||
preg_match('/(\d+\.\d+)\.(\d+)/', PHPWG_VERSION, $matches);
|
$code = get_branch_from_version(PHPWG_VERSION).'.x_to_'.$upgrade_to;
|
||||||
$code = $matches[1].'.x_to_'.$upgrade_to;
|
|
||||||
$dl_code = str_replace(array('.', '_'), '', $code);
|
$dl_code = str_replace(array('.', '_'), '', $code);
|
||||||
$remove_path = $code;
|
$remove_path = $code;
|
||||||
$obsolete_list = 'obsolete.list';
|
$obsolete_list = 'obsolete.list';
|
||||||
|
|||||||
Reference in New Issue
Block a user