mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 16:53:34 +02:00
fixes #1836 no longer use obsolete.list for minor updates
This commit is contained in:
@@ -463,12 +463,15 @@ class updates
|
|||||||
redirect(get_root_url().'admin.php?page=plugin-'.basename(dirname(__FILE__)));
|
redirect(get_root_url().'admin.php?page=plugin-'.basename(dirname(__FILE__)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$obsolete_list = null;
|
||||||
|
|
||||||
if ($step == 2)
|
if ($step == 2)
|
||||||
{
|
{
|
||||||
$code = get_branch_from_version(PHPWG_VERSION).'.x_to_'.$upgrade_to;
|
$code = get_branch_from_version(PHPWG_VERSION).'.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';
|
// no longer try to delete files on a minor upgrade
|
||||||
|
// $obsolete_list = 'obsolete.list';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -542,7 +545,11 @@ class updates
|
|||||||
|
|
||||||
if (empty($error))
|
if (empty($error))
|
||||||
{
|
{
|
||||||
self::process_obsolete_list($obsolete_list);
|
if (!empty($obsolete_list))
|
||||||
|
{
|
||||||
|
self::process_obsolete_list($obsolete_list);
|
||||||
|
}
|
||||||
|
|
||||||
deltree(PHPWG_ROOT_PATH.$conf['data_location'].'update');
|
deltree(PHPWG_ROOT_PATH.$conf['data_location'].'update');
|
||||||
invalidate_user_cache(true);
|
invalidate_user_cache(true);
|
||||||
if ($step == 2)
|
if ($step == 2)
|
||||||
|
|||||||
Reference in New Issue
Block a user