mirror of
https://github.com/standardebooks/web.git
synced 2025-07-23 07:44:49 -04:00
Refactor functions out of Library
This commit is contained in:
parent
1449148989
commit
b7b63a4be5
24 changed files with 419 additions and 444 deletions
|
@ -7,7 +7,7 @@ try{
|
|||
$collectionName = '';
|
||||
$collectionType = '';
|
||||
|
||||
$ebooks = Library::GetEbooksByCollection($collection);
|
||||
$ebooks = Ebook::GetAllByCollection($collection);
|
||||
// Get the *actual* name of the collection, in case there are accent marks (like "Arsène Lupin")
|
||||
if(sizeof($ebooks) > 0){
|
||||
foreach($ebooks[0]->CollectionMemberships as $cm){
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?
|
||||
$collections = Library::GetEbookCollections();
|
||||
$collections = Collection::GetAll();
|
||||
|
||||
?><?= Template::Header(['title' => 'Ebook Collections', 'highlight' => '', 'description' => 'Browse collections of Standard Ebooks.']) ?>
|
||||
<main>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue