aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/upgrades/2013060900-1.8.15-site_secret-404fc165cf9e0ac9.php
blob: 538d74dd6210fc7c103e8473ac0264dd40ad8126 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
/**
 * Elgg 1.8.15 upgrade 2013060900
 * site_secret
 *
 * Description
 */

$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"));
}