add ability to disable newmember widget ahead of time
This commit is contained in:
parent
268b96effa
commit
09a841f3be
@ -9,16 +9,17 @@ class Newmember {
|
|||||||
if(! local_channel())
|
if(! local_channel())
|
||||||
return EMPTY_STR;
|
return EMPTY_STR;
|
||||||
|
|
||||||
|
if(get_pconfig(local_channel(), 'system', 'disable_newmemberwidget'))
|
||||||
|
return EMPTY_STR;
|
||||||
|
|
||||||
$c = \App::get_channel();
|
$c = \App::get_channel();
|
||||||
if(! $c)
|
if(! $c)
|
||||||
return EMPTY_STR;
|
return EMPTY_STR;
|
||||||
|
|
||||||
|
|
||||||
$a = \App::get_account();
|
$a = \App::get_account();
|
||||||
if(! $a)
|
if(! $a)
|
||||||
return EMPTY_STR;
|
return EMPTY_STR;
|
||||||
|
|
||||||
|
|
||||||
if(datetime_convert('UTC','UTC',$a['account_created']) < datetime_convert('UTC','UTC', 'now - 60 days'))
|
if(datetime_convert('UTC','UTC',$a['account_created']) < datetime_convert('UTC','UTC', 'now - 60 days'))
|
||||||
return EMPTY_STR;
|
return EMPTY_STR;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user