diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-10-06 15:20:23 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-10-06 17:21:49 +0200 |
commit | a38ded702fadb8b4cb159c54e4aedf41de4f0617 (patch) | |
tree | fda2965f65660e026dd4df66d38a07d80ce9d199 /include/nav.php | |
parent | d1a3561585f5bedc8c5d093d7ab09c719a205553 (diff) | |
download | volse-hubzilla-a38ded702fadb8b4cb159c54e4aedf41de4f0617.tar.gz volse-hubzilla-a38ded702fadb8b4cb159c54e4aedf41de4f0617.tar.bz2 volse-hubzilla-a38ded702fadb8b4cb159c54e4aedf41de4f0617.zip |
strings and force import_system_apps() on std_version change
(cherry picked from commit cd5f25596678da5cba2e9208ec817a103e20914c)
Diffstat (limited to 'include/nav.php')
-rw-r--r-- | include/nav.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/nav.php b/include/nav.php index c8ba1749a..9c15552e2 100644 --- a/include/nav.php +++ b/include/nav.php @@ -230,6 +230,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) { |