aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-09-20 12:10:27 +0200
committerMario Vavti <mario@mariovavti.com>2018-09-20 12:10:27 +0200
commitad8226d549f40a1ae1ea47a83778afffb9230042 (patch)
treea2a9f8a09331c9c52ee4dfaac617c546f5528201 /include/nav.php
parentafd4da8f1173480e93c3578cf2f0a58c10caa299 (diff)
downloadvolse-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
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php9
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'];
+ }
}
}