multiple admin mails. It is now possible to define more than one admin mail address. You can now add multiple addresses, separated by comma.
This commit is contained in:
parent
9c2b1d39ea
commit
6684107b66
6 changed files with 88 additions and 67 deletions
|
|
@ -23,7 +23,7 @@ function register_post(&$a) {
|
|||
|
||||
switch($a->config['register_policy']) {
|
||||
|
||||
|
||||
|
||||
case REGISTER_OPEN:
|
||||
$blocked = 0;
|
||||
$verified = 1;
|
||||
|
|
@ -118,8 +118,11 @@ function register_post(&$a) {
|
|||
dbesc($lang)
|
||||
);
|
||||
|
||||
$adminlist = explode(",", str_replace(" ", "", $a->config['admin_email']));
|
||||
|
||||
$r = q("SELECT `language` FROM `user` WHERE `email` = '%s' LIMIT 1",
|
||||
dbesc($a->config['admin_email'])
|
||||
//dbesc($a->config['admin_email'])
|
||||
dbesc($adminlist[0])
|
||||
);
|
||||
if(count($r))
|
||||
push_lang($r[0]['language']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue