From 5cb8db64cfdcbf06244f151b7202e6d7ab1ed7d6 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 7 Jan 2013 20:25:38 -0800 Subject: bypass smarty for intletext templates --- boot.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'boot.php') diff --git a/boot.php b/boot.php index ba8208df3..e9754eae2 100644 --- a/boot.php +++ b/boot.php @@ -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, -- cgit v1.2.3