From: Fabrixxm Date: Wed, 17 Sep 2014 09:00:34 +0000 (+0200) Subject: fix settings page aside menu active item X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fbe664cc44d398d22ad10b644f373d5df0cd684f;p=friendica.git fix settings page aside menu active item add aside menu to delegate page --- diff --git a/mod/delegate.php b/mod/delegate.php index dd9caba252..20d2e605e0 100644 --- a/mod/delegate.php +++ b/mod/delegate.php @@ -1,4 +1,10 @@ t('Account'), 'url' => $a->get_baseurl(true).'/settings', - 'selected' => (($a->argc == 1)?'active':''), + 'selected' => (($a->argc == 1) && ($a->argv[0] === 'settings')?'active':''), ), array( 'label' => t('Additional features'), @@ -61,7 +61,7 @@ function settings_init(&$a) { array( 'label' => t('Delegations'), 'url' => $a->get_baseurl(true).'/delegate', - 'selected' => (($a->argc > 1) && ($a->argv[1] === 'addon')?'active':''), + 'selected' => (($a->argc == 1) && ($a->argv[0] === 'delegate')?'active':''), ), array( 'label' => t('Connected apps'), @@ -71,12 +71,12 @@ function settings_init(&$a) { array( 'label' => t('Export personal data'), 'url' => $a->get_baseurl(true) . '/uexport', - 'selected' => '' + 'selected' => (($a->argc == 1) && ($a->argv[0] === 'uexport')?'active':''), ), array( 'label' => t('Remove account'), 'url' => $a->get_baseurl(true) . '/removeme', - 'selected' => '' + 'selected' => (($a->argc == 1) && ($a->argv[0] === 'removeme')?'active':''), ) );