Skip to content

Commit

Permalink
Correct song deletion url generator #2785
Browse files Browse the repository at this point in the history
  • Loading branch information
usox authored and lachlan-00 committed May 26, 2021
1 parent cd3cc3c commit 5c93928
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Gui/Song/SongViewAdapter.php
Expand Up @@ -316,8 +316,8 @@ public function getDeletionUrl(): string
{
return sprintf(
'%s/song.php?action=%s&song_id=%d',
DeleteAction::REQUEST_KEY,
$this->configContainer->getWebPath(),
DeleteAction::REQUEST_KEY,
$this->song->getId()
);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Gui/Song/SongViewAdapterTest.php
Expand Up @@ -236,8 +236,8 @@ public function testGetDeletionUrlReturnsValue(): void
$this->assertSame(
sprintf(
'%s/song.php?action=%s&song_id=%d',
DeleteAction::REQUEST_KEY,
$webPath,
DeleteAction::REQUEST_KEY,
$songId
),
$this->subject->getDeletionUrl()
Expand Down

0 comments on commit 5c93928

Please sign in to comment.