diff options
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1014,6 +1014,10 @@ function check_config(&$a) { $retval = $func(); if($retval) { //send the administrator an e-mail + + $engine = get_app()->get_template_engine(); + get_app()->set_template_engine(); + $email_tpl = get_intltext_template("update_fail_eml.tpl"); $email_msg = replace_macros($email_tpl, array( '$sitename' => $a->config['sitename'], @@ -1021,6 +1025,9 @@ function check_config(&$a) { '$update' => $x, '$error' => sprintf( t('Update %s failed. See error logs.'), $x) )); + + get_app()->set_template_engine($engine); + $subject=sprintf(t('Update Error at %s'), $a->get_baseurl()); mail($a->config['admin_email'], $subject, $email_msg, |