diff options
author | Steve Clay <steve@mrclay.org> | 2013-12-01 21:50:20 -0500 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2013-12-01 21:50:20 -0500 |
commit | 76b7a8f78975098a5cd09f794feb34d4f7a4ee76 (patch) | |
tree | 9956e986302bc4fa93aca06607c43abbc277af94 /engine/lib/upgrades/2013060900-1.8.15-site_secret-404fc165cf9e0ac9.php | |
parent | 4ffb40d6b5b9219c2b6964592f58183da6f78962 (diff) | |
download | elgg-76b7a8f78975098a5cd09f794feb34d4f7a4ee76.tar.gz elgg-76b7a8f78975098a5cd09f794feb34d4f7a4ee76.tar.bz2 |
Make sure new lang key available during upgrade
Diffstat (limited to 'engine/lib/upgrades/2013060900-1.8.15-site_secret-404fc165cf9e0ac9.php')
-rw-r--r-- | engine/lib/upgrades/2013060900-1.8.15-site_secret-404fc165cf9e0ac9.php | 3 |
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")); } |