mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 10:02:02 -04:00
Rename GetAllArtists to GetArtists
This commit is contained in:
parent
41b4c0f8f6
commit
364a2ca78f
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue