aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-07 20:25:38 -0800
committerfriendica <info@friendica.com>2013-01-07 20:25:38 -0800
commit5cb8db64cfdcbf06244f151b7202e6d7ab1ed7d6 (patch)
tree108086b4a9d9eac318ca26f91e147b9ae520b2d6 /boot.php
parentda188214c304cefaa6fe0a36e1f60932da2f3bfb (diff)
downloadvolse-hubzilla-5cb8db64cfdcbf06244f151b7202e6d7ab1ed7d6.tar.gz
volse-hubzilla-5cb8db64cfdcbf06244f151b7202e6d7ab1ed7d6.tar.bz2
volse-hubzilla-5cb8db64cfdcbf06244f151b7202e6d7ab1ed7d6.zip
bypass smarty for intletext templates
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php7
1 files changed, 7 insertions, 0 deletions
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,