(cp 97fce5d) fixes #1545 avoid fatal error during upgrade from 11 to 12

This commit is contained in:
plegall
2021-11-03 19:14:00 +01:00
parent 240e3d0f08
commit c4ef02ae59
2 changed files with 15 additions and 1 deletions
+6 -1
View File
@@ -545,9 +545,14 @@ class updates
self::process_obsolete_list($obsolete_list);
deltree(PHPWG_ROOT_PATH.$conf['data_location'].'update');
invalidate_user_cache(true);
$template->delete_compiled_templates();
if ($step == 2)
{
// only delete compiled templates on minor update. Doing this on
// a major update might even encounter fatal error if Smarty
// changes. Anyway, a compiled template purge will be performed
// by upgrade.php
$template->delete_compiled_templates();
$page['infos'][] = l10n('Update Complete');
$page['infos'][] = $upgrade_to;
$step = -1;