X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FNav.php;h=8ebb412db7c6bffae87f6aa27e3d1e8904854a23;hb=8fd0d4cdc090dfdeeaf9beda8090c030d3f853c3;hp=0000b3d2962f3b35c390d61fb3f0fba195937f41;hpb=18f54f4425cd849c857ffd3ec00e08cf31f4adec;p=friendica.git diff --git a/src/Content/Nav.php b/src/Content/Nav.php index 0000b3d296..8ebb412db7 100644 --- a/src/Content/Nav.php +++ b/src/Content/Nav.php @@ -192,7 +192,7 @@ class Nav // user menu $nav['usermenu'][] = ['profile/' . $a->getLoggedInUserNickname(), DI::l10n()->t('Status'), '', DI::l10n()->t('Your posts and conversations')]; $nav['usermenu'][] = ['profile/' . $a->getLoggedInUserNickname() . '/profile', DI::l10n()->t('Profile'), '', DI::l10n()->t('Your profile page')]; - $nav['usermenu'][] = ['photos/' . $a->getLoggedInUserNickname(), DI::l10n()->t('Photos'), '', DI::l10n()->t('Your photos')]; + $nav['usermenu'][] = ['profile/' . $a->getLoggedInUserNickname() . '/photos', DI::l10n()->t('Photos'), '', DI::l10n()->t('Your photos')]; $nav['usermenu'][] = ['profile/' . $a->getLoggedInUserNickname() . '/media', DI::l10n()->t('Media'), '', DI::l10n()->t('Your postings with media')]; $nav['usermenu'][] = ['calendar/', DI::l10n()->t('Calendar'), '', DI::l10n()->t('Your calendar')]; $nav['usermenu'][] = ['notes/', DI::l10n()->t('Personal notes'), '', DI::l10n()->t('Your personal notes')]; @@ -244,12 +244,8 @@ class Nav } $gdirpath = 'directory'; - - if (strlen(DI::config()->get('system', 'singleuser'))) { - $gdir = DI::config()->get('system', 'directory'); - if (strlen($gdir)) { - $gdirpath = Profile::zrl($gdir, true); - } + if (DI::config()->get('system', 'singleuser') && DI::config()->get('system', 'directory')) { + $gdirpath = Profile::zrl(DI::config()->get('system', 'directory'), true); } if ((DI::userSession()->getLocalUserId() || DI::config()->get('system', 'community_page_style') != Community::DISABLED_VISITOR) &&