fixes #1841 register system activities

This commit is contained in:
plegall
2022-12-24 17:36:35 +01:00
parent b08fd91edc
commit bb69269239
15 changed files with 151 additions and 14 deletions

View File

@@ -460,6 +460,8 @@ class updates
if ($check_current_version and !version_compare($upgrade_to, PHPWG_VERSION, '>'))
{
// TODO why redirect to a plugin page? maybe a remaining code from when
// the update system was provided as a plugin?
redirect(get_root_url().'admin.php?page=plugin-'.basename(dirname(__FILE__)));
}
@@ -552,6 +554,8 @@ class updates
deltree(PHPWG_ROOT_PATH.$conf['data_location'].'update');
invalidate_user_cache(true);
pwg_activity('system', ACTIVITY_SYSTEM_CORE, 'update', array('from_version'=>PHPWG_VERSION, 'to_version'=>$upgrade_to));
if ($step == 2)
{
// only delete compiled templates on minor update. Doing this on