bug #85
This commit is contained in:
parent
19ccd658eb
commit
040fc247a0
10 changed files with 69 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue