diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-06-09 20:07:09 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-06-09 20:07:09 -0400 |
commit | 7a242f829fac2b434726c2bbdca5dbf658404c76 (patch) | |
tree | 5b7b4d086dccac5017fcb31211a27d689cb8e21f /boot.php | |
parent | 9410b63bbc819955964706c876bc2f7ecea10adf (diff) | |
parent | ee5372784e129ed7a162c7433f56fa3a1e877a67 (diff) | |
download | volse-hubzilla-7a242f829fac2b434726c2bbdca5dbf658404c76.tar.gz volse-hubzilla-7a242f829fac2b434726c2bbdca5dbf658404c76.tar.bz2 volse-hubzilla-7a242f829fac2b434726c2bbdca5dbf658404c76.zip |
Merge remote-tracking branch 'upstream/dev' into wiki
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1466,6 +1466,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( @@ -1483,6 +1489,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'); |