mirror of
https://github.com/friendica/friendica
synced 2025-04-24 13:50:10 +00:00
Remove unused theme info value "events_in_profile"
All public events (event if they are ownded by other users) are visible
This commit is contained in:
parent
2baa56d478
commit
0d53c69610
5 changed files with 4 additions and 16 deletions
|
@ -79,7 +79,7 @@ class BaseProfile extends BaseModule
|
|||
];
|
||||
|
||||
// the calendar link for the full-featured events calendar
|
||||
if ($is_owner && $a->getThemeInfoValue('events_in_profile')) {
|
||||
if ($is_owner) {
|
||||
$tabs[] = [
|
||||
'label' => DI::l10n()->t('Calendar'),
|
||||
'url' => DI::baseUrl() . '/calendar',
|
||||
|
@ -90,7 +90,7 @@ class BaseProfile extends BaseModule
|
|||
];
|
||||
// if the user is not the owner of the calendar we only show a calendar
|
||||
// with the public events of the calendar owner
|
||||
} elseif (!$is_owner) {
|
||||
} else {
|
||||
$tabs[] = [
|
||||
'label' => DI::l10n()->t('Calendar'),
|
||||
'url' => DI::baseUrl() . '/calendar/show/' . $nickname,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue