aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-02-26 06:27:42 +1100
committerredmatrix <git@macgirvin.com>2016-02-26 06:27:42 +1100
commit2a0d4a2011e8f3161a815d7d5144fcf3d86c2465 (patch)
treee324463b7ac2f57f34fc8a25bc49a9ece337f796 /include
parentebfa1a12b9cc3d939ed49a7f66e5687267a409d3 (diff)
parentbe27fb56440c6687add239e10c5e46ee7f3018f1 (diff)
downloadvolse-hubzilla-2a0d4a2011e8f3161a815d7d5144fcf3d86c2465.tar.gz
volse-hubzilla-2a0d4a2011e8f3161a815d7d5144fcf3d86c2465.tar.bz2
volse-hubzilla-2a0d4a2011e8f3161a815d7d5144fcf3d86c2465.zip
Merge pull request #299 from git-marijus/master
we have got a button for events in the nav. no need for it in the tab…
Diffstat (limited to 'include')
-rw-r--r--include/conversation.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/conversation.php b/include/conversation.php
index e2dfccac9..39119b2bb 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1599,7 +1599,7 @@ function profile_tabs($a, $is_owner = false, $nickname = null){
$uid = (($a->profile['profile_uid']) ? $a->profile['profile_uid'] : local_channel());
if($uid == local_channel()) {
- $cal_link = '/events';
+ $cal_link = '';
}
else {
$cal_link = '/cal/' . $nickname;
@@ -1653,7 +1653,7 @@ function profile_tabs($a, $is_owner = false, $nickname = null){
);
}
- if($p['view_stream']) {
+ if($p['view_stream'] && $cal_link) {
$tabs[] = array(
'label' => t('Events'),
'url' => $a->get_baseurl() . $cal_link,