mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-11-03 23:42:27 +01:00
fixes #1294 use branch number to generate download code for update
This commit is contained in:
1 parent
e848025f39
commit
c25fce65b1
1 file changed
+1
-2
@@ -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