aboutsummaryrefslogtreecommitdiffstats
path: root/mod/settings.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-10 12:56:51 -0700
committerFriendika <info@friendika.com>2011-10-10 12:56:51 -0700
commitcaf18164f0f7bd336e61d4393dabf6d93c739879 (patch)
tree15053927bc3605fb52af6e51d84cf055b93341b7 /mod/settings.php
parent06c268b3db815d56a92bfabd8df297f5e4331689 (diff)
parent2ea2e7f4b4a1f890cfcba95e92bf81a273042196 (diff)
downloadvolse-hubzilla-caf18164f0f7bd336e61d4393dabf6d93c739879.tar.gz
volse-hubzilla-caf18164f0f7bd336e61d4393dabf6d93c739879.tar.bz2
volse-hubzilla-caf18164f0f7bd336e61d4393dabf6d93c739879.zip
Merge branch 'pull'
Diffstat (limited to 'mod/settings.php')
-rw-r--r--mod/settings.php18
1 files changed, 15 insertions, 3 deletions
diff --git a/mod/settings.php b/mod/settings.php
index 44ebdd77b..7112db887 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -306,10 +306,22 @@ function settings_content(&$a) {
return;
}
- $tabtpl = get_markup_template("settings_tabs.tpl");
+ $tabs = array(
+ array(
+ 'label' => t('Account settings'),
+ 'url' => $a->get_baseurl().'/settings',
+ 'sel' => (($a->argc == 1)?'active':''),
+ ),
+ array(
+ 'label' => t('Plugin settings'),
+ 'url' => $a->get_baseurl().'/settings/addon',
+ 'sel' => (($a->argc > 1) && ($a->argv[1] === 'addon')?'active':''),
+ )
+ );
+
+ $tabtpl = get_markup_template("common_tabs.tpl");
$tabs = replace_macros($tabtpl, array(
- '$account' => array( t('Account settings'), $a->get_baseurl().'/settings'),
- '$plugins' => array( t('Plugin settings'), $a->get_baseurl().'/settings/addon')
+ '$tabs' => $tabs,
));