diff options
author | mrjive <mrjive@mrjive.it> | 2018-03-29 17:47:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-29 17:47:50 +0200 |
commit | 20ac91703d54679d2e5080ba2d4985e93986a515 (patch) | |
tree | dca933ae97c7eeaf855d8522163e989317ce918f /Zotlabs/Widget/Newmember.php | |
parent | c98776923a3aed4a0a17ca1412787de3b718eba9 (diff) | |
parent | e06e64823fbecbe67bcf59897ecad6b9c402744e (diff) | |
download | volse-hubzilla-20ac91703d54679d2e5080ba2d4985e93986a515.tar.gz volse-hubzilla-20ac91703d54679d2e5080ba2d4985e93986a515.tar.bz2 volse-hubzilla-20ac91703d54679d2e5080ba2d4985e93986a515.zip |
Merge pull request #1 from redmatrix/dev
Dev
Diffstat (limited to 'Zotlabs/Widget/Newmember.php')
-rw-r--r-- | Zotlabs/Widget/Newmember.php | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/Zotlabs/Widget/Newmember.php b/Zotlabs/Widget/Newmember.php index afa808e6f..1a4b575b9 100644 --- a/Zotlabs/Widget/Newmember.php +++ b/Zotlabs/Widget/Newmember.php @@ -9,9 +9,6 @@ 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; @@ -20,16 +17,9 @@ class Newmember { if(! $a) return EMPTY_STR; - if(datetime_convert('UTC','UTC',$a['account_created']) < datetime_convert('UTC','UTC', 'now - 60 days')) - return EMPTY_STR; - - // This could be a new account that was used to clone a very old channel - - $ob = \App::get_observer(); - if($ob && array_key_exists('xchan_name_date',$ob) && $ob['xchan_name_date'] < datetime_convert('UTC','UTC','now - 60 days')) + if(! feature_enabled(local_channel(),'start_menu')) return EMPTY_STR; - $options = [ t('Profile Creation'), [ |