aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Clay <steve@mrclay.org>2013-12-01 21:50:20 -0500
committerSteve Clay <steve@mrclay.org>2013-12-01 21:50:20 -0500
commit76b7a8f78975098a5cd09f794feb34d4f7a4ee76 (patch)
tree9956e986302bc4fa93aca06607c43abbc277af94
parent4ffb40d6b5b9219c2b6964592f58183da6f78962 (diff)
downloadelgg-76b7a8f78975098a5cd09f794feb34d4f7a4ee76.tar.gz
elgg-76b7a8f78975098a5cd09f794feb34d4f7a4ee76.tar.bz2
Make sure new lang key available during upgrade
-rw-r--r--engine/lib/upgrades/2013060900-1.8.15-site_secret-404fc165cf9e0ac9.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/lib/upgrades/2013060900-1.8.15-site_secret-404fc165cf9e0ac9.php b/engine/lib/upgrades/2013060900-1.8.15-site_secret-404fc165cf9e0ac9.php
index b5b614762..538d74dd6 100644
--- a/engine/lib/upgrades/2013060900-1.8.15-site_secret-404fc165cf9e0ac9.php
+++ b/engine/lib/upgrades/2013060900-1.8.15-site_secret-404fc165cf9e0ac9.php
@@ -9,5 +9,8 @@
$strength = _elgg_get_site_secret_strength();
if ($strength !== 'strong') {
+ // a new key is needed immediately
+ register_translations(elgg_get_root_path() . 'languages/');
+
elgg_add_admin_notice('weak_site_key', elgg_echo("upgrade:site_secret_warning:$strength"));
}