diff options
author | friendica <info@friendica.com> | 2013-01-07 20:25:38 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-07 20:25:38 -0800 |
commit | 5cb8db64cfdcbf06244f151b7202e6d7ab1ed7d6 (patch) | |
tree | 108086b4a9d9eac318ca26f91e147b9ae520b2d6 /mod/regmod.php | |
parent | da188214c304cefaa6fe0a36e1f60932da2f3bfb (diff) | |
download | volse-hubzilla-5cb8db64cfdcbf06244f151b7202e6d7ab1ed7d6.tar.gz volse-hubzilla-5cb8db64cfdcbf06244f151b7202e6d7ab1ed7d6.tar.bz2 volse-hubzilla-5cb8db64cfdcbf06244f151b7202e6d7ab1ed7d6.zip |
bypass smarty for intletext templates
Diffstat (limited to 'mod/regmod.php')
-rw-r--r-- | mod/regmod.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/regmod.php b/mod/regmod.php index 3da1575d3..23b586be2 100644 --- a/mod/regmod.php +++ b/mod/regmod.php @@ -39,6 +39,9 @@ function user_allow($hash) { push_lang($register[0]['language']); + $engine = get_app()->get_template_engine(); + get_app()->set_template_engine(); + $email_tpl = get_intltext_template("register_open_eml.tpl"); $email_tpl = replace_macros($email_tpl, array( '$sitename' => $a->config['sitename'], @@ -49,6 +52,8 @@ function user_allow($hash) { '$uid' => $user[0]['uid'] )); + get_app()->set_template_engine($engine); + $res = mail($user[0]['email'], sprintf(t('Registration details for %s'), $a->config['sitename']), $email_tpl, 'From: ' . t('Administrator') . '@' . $_SERVER['SERVER_NAME'] . "\n" |