]> git.mxchange.org Git - friendica.git/commitdiff
fix link to media tab in navigation
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Wed, 27 Oct 2021 13:09:37 +0000 (15:09 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Wed, 27 Oct 2021 13:09:37 +0000 (15:09 +0200)
In #10904 the wrong link was set, this PR should fix it and really point towards the media tab of the profiles.

src/Content/Nav.php
view/theme/frio/theme.php

index db3eddfe2312c9ef11868152a329e97aeb48fcf2..90822c7e6fed3fb2bb7c7e6364b41e650046973a 100644 (file)
@@ -190,7 +190,7 @@ class Nav
                        $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'][] = ['media/' . $a->getLoggedInUserNickname(), DI::l10n()->t('Media'), '', DI::l10n()->t('Your postings with media')];
+                       $nav['usermenu'][] = ['profile/' . $a->getLoggedInUserNickname() . '/media', DI::l10n()->t('Media'), '', DI::l10n()->t('Your postings with media')];
                        $nav['usermenu'][] = ['events/', DI::l10n()->t('Events'), '', DI::l10n()->t('Your events')];
                        $nav['usermenu'][] = ['notes/', DI::l10n()->t('Personal notes'), '', DI::l10n()->t('Your personal notes')];
 
index 138bfdc2aac7781d723a83c77899a3e88492b035..a8db261848c70c37670a577f0b20ededbbc31c83 100644 (file)
@@ -225,7 +225,7 @@ function frio_remote_nav(App $a, array &$nav_info)
                $nav_info['nav']['usermenu'][] = [$server_url . '/profile/' . $remoteUser['nick'], DI::l10n()->t('Status'), '', DI::l10n()->t('Your posts and conversations')];
                $nav_info['nav']['usermenu'][] = [$server_url . '/profile/' . $remoteUser['nick'] . '/profile', DI::l10n()->t('Profile'), '', DI::l10n()->t('Your profile page')];
                $nav_info['nav']['usermenu'][] = [$server_url . '/photos/' . $remoteUser['nick'], DI::l10n()->t('Photos'), '', DI::l10n()->t('Your photos')];
-               $nav_info['nav']['usermenu'][] = [$server_url . '/media/' . $remoteUser['nick'], DI::l10n()->t('Media'), '', DI::l10n()->t('Your postings with media')];
+               $nav_info['nav']['usermenu'][] = [$server_url . '/profile/' . $remoteUser['nick'] . '/media', DI::l10n()->t('Media'), '', DI::l10n()->t('Your postings with media')];
                $nav_info['nav']['usermenu'][] = [$server_url . '/events/', DI::l10n()->t('Events'), '', DI::l10n()->t('Your events')];
 
                // navbar links