diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-06-09 09:10:46 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-06-09 09:10:46 +0200 |
commit | 9b96fe66a6b5beffee6a4250c1bedaad6dc8a7fd (patch) | |
tree | 4170ca20120a23e40bb98c6d6ac57a59b827dc28 /boot.php | |
parent | 4234c9a1946d805259d3fea916844710863acd5d (diff) | |
parent | 11045b92fb2a5af504a8d6cfba1f0fe67107e847 (diff) | |
download | volse-hubzilla-9b96fe66a6b5beffee6a4250c1bedaad6dc8a7fd.tar.gz volse-hubzilla-9b96fe66a6b5beffee6a4250c1bedaad6dc8a7fd.tar.bz2 volse-hubzilla-9b96fe66a6b5beffee6a4250c1bedaad6dc8a7fd.zip |
Merge branch 'sabre32' of https://github.com/redmatrix/hubzilla into sabre32
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1465,6 +1465,12 @@ function check_config(&$a) { @unlink($lockfile); //send the administrator an e-mail file_put_contents($lockfile, $x); + + $r = q("select account_language from account where account_email = '%s' limit 1", + dbesc(App::$config['system']['admin_email']) + ); + push_lang(($r) ? $r[0]['account_language'] : 'en'); + $email_tpl = get_intltext_template("update_fail_eml.tpl"); $email_msg = replace_macros($email_tpl, array( @@ -1482,6 +1488,7 @@ function check_config(&$a) { . 'Content-transfer-encoding: 8bit' ); //try the logger logger('CRITICAL: Update Failed: ' . $x); + pop_lang(); } else set_config('database','update_r' . $x, 'success'); |