diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-09-20 12:10:27 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-09-20 12:10:27 +0200 |
commit | ad8226d549f40a1ae1ea47a83778afffb9230042 (patch) | |
tree | a2a9f8a09331c9c52ee4dfaac617c546f5528201 | |
parent | afd4da8f1173480e93c3578cf2f0a58c10caa299 (diff) | |
download | volse-hubzilla-ad8226d549f40a1ae1ea47a83778afffb9230042.tar.gz volse-hubzilla-ad8226d549f40a1ae1ea47a83778afffb9230042.tar.bz2 volse-hubzilla-ad8226d549f40a1ae1ea47a83778afffb9230042.zip |
deal with the ability to provide settings url in apd files in include/nav.php
-rw-r--r-- | include/nav.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/nav.php b/include/nav.php index 9afba7945..f8d6f2438 100644 --- a/include/nav.php +++ b/include/nav.php @@ -206,7 +206,14 @@ function nav($template = 'default') { ); if($active_app) { - $url = $active_app[0]['app_url']; + if(strpos($active_app[0]['app_url'], ',')) { + $urls = explode(',', $active_app[0]['app_url']); + $url = trim($urls[0]); + $settings_url = trim($urls[1]); + } + else { + $url = $active_app[0]['app_url']; + } } } |