more work on channel manager

This commit is contained in:
zotlabs 2019-10-05 01:07:02 -07:00
parent b36376553d
commit b6cc0bc6b8
2 changed files with 4 additions and 5 deletions

View file

@ -181,10 +181,10 @@ class Manage extends Controller {
'$msg_selected' => t('Current Channel'),
'$selected' => local_channel(),
'$desc' => t('Switch to one of your channels by selecting it.'),
'$msg_default' => t('Default Channel'),
'$msg_default' => t('Default Login Channel'),
'$msg_make_default' => t('Make Default'),
'$msg_include' => t('Add to menu'),
'$msg_no_include' => t('Remove from menu'),
'$msg_no_include' => t('Add to menu'),
'$create' => $create,
'$all_channels' => $channels,
'$mail_format' => t('%d new messages'),

View file

@ -31,9 +31,8 @@ function nav($template = 'default') {
);
if(! $_SESSION['delegate']) {
$chans = q("select channel_name, channel_id from channel left join pconfig on channel_id = pconfig.uid where channel_account_id = %d and channel_removed = 0 and pconfig.cat = 'system' and pconfig.k = 'include_in_menu' and pconfig.v = '1' and channel_id != %d order by channel_name ",
intval(get_account_id()),
intval(local_channel())
$chans = q("select channel_name, channel_id from channel left join pconfig on channel_id = pconfig.uid where channel_account_id = %d and channel_removed = 0 and pconfig.cat = 'system' and pconfig.k = 'include_in_menu' and pconfig.v = '1' order by channel_name ",
intval(get_account_id())
);
}