bypass smarty for intletext templates
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user