diff options
author | Stefan Parviainen <saparvia@caterva.eu> | 2014-12-29 22:07:40 +0100 |
---|---|---|
committer | Stefan Parviainen <saparvia@caterva.eu> | 2014-12-29 22:07:40 +0100 |
commit | e69e59d260c311ceae4cbde3239c33d8caea4553 (patch) | |
tree | fc281ec50758b89f38d170ad1ba47582138acc83 /mod/manage.php | |
parent | 40a327b68fe1bb37bbc2fc6bc1c6d761ee564898 (diff) | |
download | volse-hubzilla-e69e59d260c311ceae4cbde3239c33d8caea4553.tar.gz volse-hubzilla-e69e59d260c311ceae4cbde3239c33d8caea4553.tar.bz2 volse-hubzilla-e69e59d260c311ceae4cbde3239c33d8caea4553.zip |
Don't show current channel separately in channel manager, highlight it instead
Diffstat (limited to 'mod/manage.php')
-rw-r--r-- | mod/manage.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/mod/manage.php b/mod/manage.php index 21327a120..b0de945bf 100644 --- a/mod/manage.php +++ b/mod/manage.php @@ -46,15 +46,12 @@ function manage_content(&$a) { intval(PAGE_REMOVED) ); - $selected_channel = null; $account = get_app()->get_account(); if($r && count($r)) { $channels = $r; for($x = 0; $x < count($channels); $x ++) { $channels[$x]['link'] = 'manage/' . intval($channels[$x]['channel_id']); - if($channels[$x]['channel_id'] == local_user()) - $selected_channel = &$channels[$x]; // Needs to be a reference! $channels[$x]['default'] = (($channels[$x]['channel_id'] == $account['account_default_channel']) ? "1" : ''); $channels[$x]['default_links'] = '1'; @@ -152,8 +149,8 @@ function manage_content(&$a) { $o = replace_macros(get_markup_template('channels.tpl'), array( '$header' => t('Channel Manager'), '$msg_selected' => t('Current Channel'), - '$selected' => $selected_channel, - '$desc' => t('Attach to one of your channels by selecting it.'), + '$selected' => local_user(), + '$desc' => t('Switch to one of your channels by selecting it.'), '$msg_default' => t('Default Channel'), '$msg_make_default' => t('Make Default'), '$links' => $links, |