Ebook Collections
-

-
+ foreach($collections as $collection){ ?>
+
- + + + } ?> +
diff --git a/config/apache/standardebooks.org.conf b/config/apache/standardebooks.org.conf index 09601469..25f2d7dd 100644 --- a/config/apache/standardebooks.org.conf +++ b/config/apache/standardebooks.org.conf @@ -251,7 +251,6 @@ Define webroot /standardebooks.org/web RewriteRule ^/ebooks/([^\./]+?)/downloads$ /bulk-downloads/get.php?author=$1 [QSA] RewriteRule ^/ebooks/([^\./]+?)/feeds$ /feeds/get.php?author=$1 [QSA] RewriteRule ^/subjects/([^\./]+?)$ /ebooks/index.php?tags[]=$1 [QSA] - RewriteRule ^/collections$ /collections/index.php [L] RewriteRule ^/collections/([^\./]+?)$ /ebooks/index.php?collection=$1 [QSA] RewriteRule ^/collections/([^/]+?)/downloads$ /bulk-downloads/get.php?collection=$1 RewriteRule ^/collections/([^/]+?)/feeds$ /feeds/get.php?collection=$1 diff --git a/config/apache/standardebooks.test.conf b/config/apache/standardebooks.test.conf index 5f84ce68..12e8ffc5 100644 --- a/config/apache/standardebooks.test.conf +++ b/config/apache/standardebooks.test.conf @@ -233,7 +233,6 @@ Define webroot /standardebooks.org/web RewriteRule ^/ebooks/([^\./]+?)/downloads$ /bulk-downloads/get.php?author=$1 [QSA] RewriteRule ^/ebooks/([^\./]+?)/feeds$ /feeds/get.php?author=$1 [QSA] RewriteRule ^/subjects/([^\./]+?)$ /ebooks/index.php?tags[]=$1 [QSA] - RewriteRule ^/collections$ /collections/index.php [L] RewriteRule ^/collections/([^\./]+?)$ /ebooks/index.php?collection=$1 [QSA] RewriteRule ^/collections/([^/]+?)/downloads$ /bulk-downloads/get.php?collection=$1 RewriteRule ^/collections/([^/]+?)/feeds$ /feeds/get.php?collection=$1 diff --git a/lib/Library.php b/lib/Library.php index b1c89f29..60b1587a 100644 --- a/lib/Library.php +++ b/lib/Library.php @@ -451,6 +451,7 @@ class Library{ if($collator === null){ throw new Exceptions\SeException('Couldn\'t create collator object when rebuilding cache.'); } + $ebooks = []; $ebooksByCollection = []; $ebooksByTag = []; diff --git a/templates/CollectionTable.php b/templates/CollectionTable.php deleted file mode 100644 index 08b2f7c6..00000000 --- a/templates/CollectionTable.php +++ /dev/null @@ -1,14 +0,0 @@ -
Collection | -
---|
= Formatter::ToPlainText($collection->Name) ?> | -