move start_menu switch to settings/display for now

This commit is contained in:
Mario Vavti
2018-09-25 11:37:22 +02:00
parent 4c58a5cef2
commit 39866b7463
4 changed files with 20 additions and 11 deletions

View File

@@ -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 = [