mirror of
https://github.com/friendica/friendica
synced 2025-04-24 13:50:10 +00:00
Create /profile/{nickname}/photos route
- Create new Profile\Photos\Index module class - Update most references of the legacy /photos/{nickname} route
This commit is contained in:
parent
6dcc964ed8
commit
77e87da441
16 changed files with 225 additions and 88 deletions
|
@ -62,7 +62,7 @@ class BaseProfile extends BaseModule
|
|||
],
|
||||
[
|
||||
'label' => DI::l10n()->t('Photos'),
|
||||
'url' => DI::baseUrl() . '/photos/' . $nickname,
|
||||
'url' => $baseProfileUrl . '/photos',
|
||||
'sel' => $current == 'photos' ? 'active' : '',
|
||||
'title' => DI::l10n()->t('Photo Albums'),
|
||||
'id' => 'photo-tab',
|
||||
|
@ -78,7 +78,7 @@ class BaseProfile extends BaseModule
|
|||
],
|
||||
];
|
||||
|
||||
// the calendar link for the full featured events calendar
|
||||
// the calendar link for the full-featured events calendar
|
||||
if ($is_owner && $a->getThemeInfoValue('events_in_profile')) {
|
||||
$tabs[] = [
|
||||
'label' => DI::l10n()->t('Calendar'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue