(cp 06c1ec0) issue #1849 refresh the version number after a core update

This commit is contained in:
plegall
2023-01-09 16:08:51 +01:00
parent 83ea52e6d9
commit 9ff9cafd9b
3 changed files with 3 additions and 2 deletions

View File

@@ -563,6 +563,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,
)
);