From 040fc247a0caa51e0d4da4169980dc32e80ee804 Mon Sep 17 00:00:00 2001 From: Friendika Date: Mon, 23 May 2011 20:30:37 -0700 Subject: bug #85 --- mod/regmod.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mod/regmod.php') diff --git a/mod/regmod.php b/mod/regmod.php index 2563a58d1..9873f1094 100644 --- a/mod/regmod.php +++ b/mod/regmod.php @@ -4,6 +4,8 @@ function regmod_content(&$a) { + global $lang; + $_SESSION['return_url'] = $a->cmd; if(! local_user()) { @@ -79,6 +81,8 @@ function regmod_content(&$a) { proc_run('php',"include/directory.php","$url"); } + push_lang($register[0]['language']); + $email_tpl = get_intltext_template("register_open_eml.tpl"); $email_tpl = replace_macros($email_tpl, array( '$sitename' => $a->config['sitename'], @@ -95,6 +99,8 @@ function regmod_content(&$a) { . 'Content-type: text/plain; charset=UTF-8' . "\n" . 'Content-transfer-encoding: 8bit' ); + pop_lang(); + if($res) { info( t('Account approved.') . EOL ); return; -- cgit v1.2.3