diff --git a/lib/Ebook.php b/lib/Ebook.php index c4f9ee54..e03d8ee0 100644 --- a/lib/Ebook.php +++ b/lib/Ebook.php @@ -2426,7 +2426,7 @@ final class Ebook{ * * @return array */ - public static function GetWantedByDifficulty(Enums\EbookPlaceholderDifficulty $difficulty): array{ + public static function GetByIsWantedAndDifficulty(Enums\EbookPlaceholderDifficulty $difficulty): array{ return Db::Query(' SELECT Ebooks.* from Ebooks inner join EbookPlaceholders using (EbookId) diff --git a/www/contribute/wanted-ebooks.php b/www/contribute/wanted-ebooks.php index 30b367ad..5d302640 100644 --- a/www/contribute/wanted-ebooks.php +++ b/www/contribute/wanted-ebooks.php @@ -3,7 +3,7 @@ use function Safe\ob_end_clean; use function Safe\ob_start; function WantedEbooks(Enums\EbookPlaceholderDifficulty $difficulty, ?bool $showPlaceholderMetadata): string{ - $ebooks = Ebook::GetWantedByDifficulty($difficulty); + $ebooks = Ebook::GetByIsWantedAndDifficulty($difficulty); $showPlaceholderMetadata = $showPlaceholderMetadata ?? false; ob_start();