From cd5f25596678da5cba2e9208ec817a103e20914c Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sat, 6 Oct 2018 17:20:23 +0200 Subject: strings and force import_system_apps() on std_version change --- include/nav.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/nav.php') diff --git a/include/nav.php b/include/nav.php index b5592d7aa..d405b9f06 100644 --- a/include/nav.php +++ b/include/nav.php @@ -229,6 +229,11 @@ function nav($template = 'default') { set_pconfig(local_channel(), 'system','import_system_apps', datetime_convert('UTC','UTC','now','Y-m-d')); } + if(get_pconfig(local_channel(), 'system','force_import_system_apps') !== STD_VERSION) { + Apps::import_system_apps(); + set_pconfig(local_channel(), 'system','force_import_system_apps', STD_VERSION); + } + $syslist = array(); $list = Apps::app_list(local_channel(), false, ['nav_featured_app', 'nav_pinned_app']); if($list) { -- cgit v1.2.3