mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 19:06:49 -04:00
Rename function to Ebook::GetByIsWantedAndDifficulty()
This commit is contained in:
parent
e25993b208
commit
2d5cba0aaa
2 changed files with 2 additions and 2 deletions
|
@ -2426,7 +2426,7 @@ final class Ebook{
|
|||
*
|
||||
* @return array<Ebook>
|
||||
*/
|
||||
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)
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue