aboutsummaryrefslogtreecommitdiffstats
path: root/upgrade.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2016-03-04 14:27:20 +0100
committerplegall <plg@piwigo.org>2016-03-04 14:27:20 +0100
commit91276709b4d332ea8133a8b471fae5b45488195e (patch)
tree427947196eea32e61479913c2371a5855c7b76a3 /upgrade.php
parentf1f206f1bdf456e4fae92cbab7f96fc65520f7ec (diff)
bug fixed: wrong version number at the end of upgrade
Diffstat (limited to '')
-rw-r--r--upgrade.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/upgrade.php b/upgrade.php
index 6c56d383f..11b745b6d 100644
--- a/upgrade.php
+++ b/upgrade.php
@@ -480,7 +480,8 @@ REPLACE INTO '.PLUGINS_TABLE.'
$template->assign(
array(
- 'button_label' => l10n('2_7_0_descrp'), // TODO avoid to update it on each release
+ // TODO find a better way to do that, with a core string in English
+ 'button_label' => str_replace('2.7', get_branch_from_version(PHPWG_VERSION), l10n('2_7_0_descrp')),
'button_link' => 'admin.php?submited_tour_path=tours/'.$version_.'&amp;pwg_token='.get_pwg_token(),
)
);