force major version system apps import for 3.8RC - remove this at a later point
This commit is contained in:
parent
b96a05494b
commit
df5115e7b8
@ -224,11 +224,18 @@ function nav($template = 'default') {
|
||||
|
||||
//app bin
|
||||
if($is_owner) {
|
||||
//daily system apps import
|
||||
if(get_pconfig(local_channel(), 'system','import_system_apps') !== datetime_convert('UTC','UTC','now','Y-m-d')) {
|
||||
Apps::import_system_apps();
|
||||
set_pconfig(local_channel(), 'system','import_system_apps', datetime_convert('UTC','UTC','now','Y-m-d'));
|
||||
}
|
||||
|
||||
//force system apps import once on major version upgrade if needed
|
||||
if(get_pconfig(local_channel(), 'system','force_import_system_apps') !== '3.8RC') {
|
||||
Apps::import_system_apps();
|
||||
set_pconfig(local_channel(), 'system','force_import_system_apps', '3.8RC');
|
||||
}
|
||||
|
||||
$syslist = array();
|
||||
$list = Apps::app_list(local_channel(), false, ['nav_featured_app', 'nav_pinned_app']);
|
||||
if($list) {
|
||||
|
Reference in New Issue
Block a user