aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-06-08 20:00:36 -0700
committerredmatrix <git@macgirvin.com>2016-06-08 20:00:36 -0700
commit2ad5010dc3f2f8d077a3228915d28a3e256f6e13 (patch)
tree036691c70b3b91cd746306cf7530f85b2dda85e4 /boot.php
parent40bba93a310fab27fb14a9b6a55bcaab1530eba2 (diff)
downloadvolse-hubzilla-2ad5010dc3f2f8d077a3228915d28a3e256f6e13.tar.gz
volse-hubzilla-2ad5010dc3f2f8d077a3228915d28a3e256f6e13.tar.bz2
volse-hubzilla-2ad5010dc3f2f8d077a3228915d28a3e256f6e13.zip
issue #59
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 76312ed4e..a31d98dbb 100755
--- a/boot.php
+++ b/boot.php
@@ -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');