rename channel app events to calendar and add nav_set_selected() to /cal

This commit is contained in:
Mario Vavti
2017-11-07 11:22:11 +01:00
parent 1bb6dfc9a0
commit 47fbdda409
3 changed files with 6 additions and 7 deletions

View File

@@ -440,10 +440,10 @@ function channel_apps($is_owner = false, $nickname = null) {
if($p['view_stream'] && $cal_link) {
$tabs[] = [
'label' => t('Events'),
'label' => t('Calendar'),
'url' => z_root() . $cal_link,
'sel' => ((argv(0) == 'cal' || argv(0) == 'events') ? 'active' : ''),
'title' => t('Events'),
'sel' => ((argv(0) == 'cal') ? 'active' : ''),
'title' => t('Calendar'),
'id' => 'event-tab',
'icon' => 'calendar'
];