diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-10-05 12:09:54 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-10-05 12:09:54 +0200 |
commit | df5115e7b8d7a21e9dafbe14d68590f84c40da60 (patch) | |
tree | 1be32669e470b8f32af3865d6297d6c62285e5cf | |
parent | b96a05494b5837c0011b02bf9034076e11456da2 (diff) | |
download | volse-hubzilla-df5115e7b8d7a21e9dafbe14d68590f84c40da60.tar.gz volse-hubzilla-df5115e7b8d7a21e9dafbe14d68590f84c40da60.tar.bz2 volse-hubzilla-df5115e7b8d7a21e9dafbe14d68590f84c40da60.zip |
force major version system apps import for 3.8RC - remove this at a later point
-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) { |