aboutsummaryrefslogtreecommitdiffstats
path: root/upgrade.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2016-03-08 10:48:00 +0100
committerplegall <plg@piwigo.org>2016-03-08 10:48:00 +0100
commitf9fecd0be09ea6da405f1ab2a09e09bc51312dd4 (patch)
tree681f9b4cbbed109beb41ca4babf0662dc814f8c4 /upgrade.php
parentf5d0f09a20da71d51ed4d85da2d2c12698b11b6b (diff)
parentd80d853a23119bd21c20ad92024cba5dce47e7d4 (diff)
Merge branch 'master' into translation
Diffstat (limited to 'upgrade.php')
-rw-r--r--upgrade.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/upgrade.php b/upgrade.php
index e67d8fa0f..11b745b6d 100644
--- a/upgrade.php
+++ b/upgrade.php
@@ -342,6 +342,10 @@ else if (!in_array('nb_available_tags', $columns_of[PREFIX_TABLE.'user_cache']))
{
$current_release = '2.5.0';
}
+else if (!in_array('activation_key_expire', $columns_of[PREFIX_TABLE.'user_infos']))
+{
+ $current_release = '2.6.0';
+}
else
{
// retrieve already applied upgrades
@@ -351,9 +355,9 @@ SELECT id
;';
$applied_upgrades = array_from_query($query, 'id');
- if (!in_array(144, $applied_upgrades))
+ if (!in_array(148, $applied_upgrades))
{
- $current_release = '2.6.0';
+ $current_release = '2.7.0';
}
else
{
@@ -476,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(),
)
);