mirror of
https://github.com/friendica/friendica
synced 2025-04-25 17:50:11 +00:00
And again, and again, and again, ... some more notices removed (#5601)
* And again, and again, and again, ... some more notices removed * And some more notices ... * Some more place
This commit is contained in:
parent
e06fc2aa69
commit
880b7177c8
5 changed files with 11 additions and 5 deletions
|
@ -186,7 +186,7 @@ class Nav
|
|||
$nav['home'] = ['profile/' . $a->user['nickname'], L10n::t('Home'), '', L10n::t('Your posts and conversations')];
|
||||
|
||||
// Don't show notifications for public communities
|
||||
if ($_SESSION['page_flags'] != Contact::PAGE_COMMUNITY) {
|
||||
if (defaults($_SESSION, 'page_flags', '') != Contact::PAGE_COMMUNITY) {
|
||||
$nav['introductions'] = ['notifications/intros', L10n::t('Introductions'), '', L10n::t('Friend Requests')];
|
||||
$nav['notifications'] = ['notifications', L10n::t('Notifications'), '', L10n::t('Notifications')];
|
||||
$nav['notifications']['all'] = ['notifications/system', L10n::t('See all notifications'), '', ''];
|
||||
|
|
|
@ -27,6 +27,10 @@ class CalendarExport
|
|||
public static function getHTML() {
|
||||
$a = get_app();
|
||||
|
||||
if (empty($a->data['user'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
$owner_uid = $a->data['user']['uid'];
|
||||
|
||||
// The permission testing is a little bit tricky because we have to respect many cases.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue