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:
Michael Vogel 2018-08-11 23:05:42 +02:00 committed by Hypolite Petovan
parent e06fc2aa69
commit 880b7177c8
5 changed files with 11 additions and 5 deletions

View file

@ -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'), '', ''];

View file

@ -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.