aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-06-09 20:07:09 -0400
committerAndrew Manning <tamanning@zoho.com>2016-06-09 20:07:09 -0400
commit7a242f829fac2b434726c2bbdca5dbf658404c76 (patch)
tree5b7b4d086dccac5017fcb31211a27d689cb8e21f /boot.php
parent9410b63bbc819955964706c876bc2f7ecea10adf (diff)
parentee5372784e129ed7a162c7433f56fa3a1e877a67 (diff)
downloadvolse-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-xboot.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index f7df2d74b..8e789a77f 100755
--- a/boot.php
+++ b/boot.php
@@ -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');