diff options
Diffstat (limited to 'include/nav.php')
-rw-r--r-- | include/nav.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/nav.php b/include/nav.php index b5592d7aa..79480b52a 100644 --- a/include/nav.php +++ b/include/nav.php @@ -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) { |