Rename GetAllArtists to GetArtists

This commit is contained in:
Mike Colagrosso 2024-07-13 15:33:42 -06:00 committed by Alex Cabal
parent 41b4c0f8f6
commit 364a2ca78f
2 changed files with 2 additions and 2 deletions

View file

@ -805,7 +805,7 @@ class Library{
/**
* @return array<Artist>
*/
public static function GetAllArtists(): array{
public static function GetArtists(): array{
return Db::Query('
SELECT *
from Artists

View file

@ -16,7 +16,7 @@ $isEditForm = $isEditForm ?? false;
<span>Name</span>
<span>For existing artists, leave the year of death blank.</span>
<datalist id="artist-names">
<? foreach(Library::GetAllArtists() as $artist){ ?>
<? foreach(Library::GetArtists() as $artist){ ?>
<option value="<?= Formatter::EscapeHtml($artist->Name) ?>"><?= Formatter::EscapeHtml($artist->Name) ?>, d. <? if($artist->DeathYear !== null){ ?><?= $artist->DeathYear ?><? }else{ ?>unknown<? } ?></option>
<? foreach($artist->AlternateNames as $alternateName){ ?>
<option value="<?= Formatter::EscapeHtml($alternateName) ?>"><?= Formatter::EscapeHtml($alternateName) ?>, d. <? if($artist->DeathYear !== null){ ?><?= Formatter::EscapeHtml($artist->DeathYear) ?><? }else{ ?>unknown<? } ?></option>