aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-10-06 17:20:23 +0200
committerMario Vavti <mario@mariovavti.com>2018-10-06 17:20:23 +0200
commitcd5f25596678da5cba2e9208ec817a103e20914c (patch)
tree26d207be56d3eb674160878ace3c75d0ae9be6fa /include/nav.php
parentda8b276699b7d4081125456946c2d3b6af330381 (diff)
downloadvolse-hubzilla-cd5f25596678da5cba2e9208ec817a103e20914c.tar.gz
volse-hubzilla-cd5f25596678da5cba2e9208ec817a103e20914c.tar.bz2
volse-hubzilla-cd5f25596678da5cba2e9208ec817a103e20914c.zip
strings and force import_system_apps() on std_version change
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php5
1 files changed, 5 insertions, 0 deletions
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) {