From df5115e7b8d7a21e9dafbe14d68590f84c40da60 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 5 Oct 2018 12:09:54 +0200 Subject: force major version system apps import for 3.8RC - remove this at a later point --- include/nav.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/nav.php') 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) { -- cgit v1.2.3