aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Newmember.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-03-13 15:20:32 +0100
committerMario Vavti <mario@mariovavti.com>2018-03-13 15:20:32 +0100
commit09a841f3be2953fa8e346be9259b43cf68920741 (patch)
tree1a3afbbc9dd4b399d2f325328a236db16e3b1277 /Zotlabs/Widget/Newmember.php
parent268b96effafd4340fe33e1e3dd459810143e2fc0 (diff)
downloadvolse-hubzilla-09a841f3be2953fa8e346be9259b43cf68920741.tar.gz
volse-hubzilla-09a841f3be2953fa8e346be9259b43cf68920741.tar.bz2
volse-hubzilla-09a841f3be2953fa8e346be9259b43cf68920741.zip
add ability to disable newmember widget ahead of time
Diffstat (limited to 'Zotlabs/Widget/Newmember.php')
-rw-r--r--Zotlabs/Widget/Newmember.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Widget/Newmember.php b/Zotlabs/Widget/Newmember.php
index cdb70e23d..acc151944 100644
--- a/Zotlabs/Widget/Newmember.php
+++ b/Zotlabs/Widget/Newmember.php
@@ -9,16 +9,17 @@ class Newmember {
if(! local_channel())
return EMPTY_STR;
+ if(get_pconfig(local_channel(), 'system', 'disable_newmemberwidget'))
+ return EMPTY_STR;
+
$c = \App::get_channel();
if(! $c)
return EMPTY_STR;
-
$a = \App::get_account();
if(! $a)
return EMPTY_STR;
-
if(datetime_convert('UTC','UTC',$a['account_created']) < datetime_convert('UTC','UTC', 'now - 60 days'))
return EMPTY_STR;