aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Newmember.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-09-25 11:37:22 +0200
committerMario Vavti <mario@mariovavti.com>2018-09-25 11:37:22 +0200
commit39866b74637a58df5b1ffb8f2b6f164849d65315 (patch)
treeff24aec7e360028ceecefc3de310bfd208f20c5b /Zotlabs/Widget/Newmember.php
parent4c58a5cef278357c1bc31b76cfbd2719e3338398 (diff)
downloadvolse-hubzilla-39866b74637a58df5b1ffb8f2b6f164849d65315.tar.gz
volse-hubzilla-39866b74637a58df5b1ffb8f2b6f164849d65315.tar.bz2
volse-hubzilla-39866b74637a58df5b1ffb8f2b6f164849d65315.zip
move start_menu switch to settings/display for now
Diffstat (limited to 'Zotlabs/Widget/Newmember.php')
-rw-r--r--Zotlabs/Widget/Newmember.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/Zotlabs/Widget/Newmember.php b/Zotlabs/Widget/Newmember.php
index 1a4b575b9..e57cf5171 100644
--- a/Zotlabs/Widget/Newmember.php
+++ b/Zotlabs/Widget/Newmember.php
@@ -17,7 +17,14 @@ class Newmember {
if(! $a)
return EMPTY_STR;
- if(! feature_enabled(local_channel(),'start_menu'))
+ if($a['account_created'] > datetime_convert('','','now - 60 days')) {
+ $enabled = get_pconfig(local_channel(), 'system', 'start_menu', 1);
+ }
+ else {
+ $enabled = get_pconfig(local_channel(), 'system', 'start_menu', 0);
+ }
+
+ if(! $enabled)
return EMPTY_STR;
$options = [