Skip to content

Commit

Permalink
Make sure new lang key available during upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
mrclay committed Dec 2, 2013
1 parent 4ffb40d commit 76b7a8f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}

0 comments on commit 76b7a8f

Please sign in to comment.