issue #1849 refresh the version number after a core update

This commit is contained in:
plegall
2023-01-09 16:08:25 +01:00
parent 9bccc8588f
commit 06c1ec07f0
3 changed files with 3 additions and 2 deletions

View File

@@ -567,6 +567,7 @@ class updates
$page['infos'][] = l10n('Update Complete');
$page['infos'][] = $upgrade_to;
$page['updated_version'] = $upgrade_to;
$step = -1;
}
else

View File

@@ -57,7 +57,7 @@ p.release .errors {margin:0}
</div>
{/if}
<p><i class="icon-info-circled-1"></i> {'Currently running version %s'|translate:PHPWG_VERSION}</p>
<p><i class="icon-info-circled-1"></i> {'Currently running version %s'|translate:$PIWIGO_CURRENT_VERSION}</p>
{if $STEP == 0}
{if $CHECK_VERSION}

View File

@@ -113,7 +113,7 @@ if (!is_webmaster())
$template->assign(array(
'STEP' => $step,
'PHPWG_VERSION' => PHPWG_VERSION,
'PIWIGO_CURRENT_VERSION' => isset($page['updated_version']) ? $page['updated_version'] : PHPWG_VERSION,
'UPGRADE_TO' => $upgrade_to,
)
);