Skip to content

Commit

Permalink
Merge pull request GEWIS#1864 from tomudding/fix/photo-details-not-lo…
Browse files Browse the repository at this point in the history
…ading-due-to-removal-of-language-aware-api-routing

fix: photo details route not setting language to null
  • Loading branch information
tomudding authored Jul 21, 2024
2 parents 6710a7a + 7240776 commit 2b2b2d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/Photo/view/photo/album/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ $this->scriptUrl()->requireUrl('member/search')
) ?>"
<?php endif; ?>
data-profile-photo-url="<?= $this->url('photo/set_profile_photo', ['photo_id' => $item->getId()]) ?>"
data-details-url="<?= $this->url('api_photo/details', ['photo_id' => $item->getId()]) ?>"
data-details-url="<?= $this->url('api_photo/details', ['photo_id' => $item->getId(), 'language' => null]) ?>"
data-vote-url="<?= $this->url('photo/photo/vote', ['photo_id' => $item->getId()]) ?>"
<?php if (null !== $weeklyPhoto): ?>
data-weekly-date="<?= $weeklyPhoto->getWeek()->format('c') ?>"
Expand Down

0 comments on commit 2b2b2d7

Please sign in to comment.