Skip to content

Commit

Permalink
Fetch chapter descriptions as well, for archive
Browse files Browse the repository at this point in the history
  • Loading branch information
kemayo committed Apr 23, 2013
1 parent 3ed163e commit 930f68c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Expand Up @@ -125,7 +125,7 @@
break;
case 'archive':
// full strip listing
$query = "SELECT c.*, ch.title AS chapter_title, ch.slug AS chapter_slug FROM comics c LEFT JOIN chapters ch ON c.chapterid = ch.chapterid WHERE c.pub_date <= UNIX_TIMESTAMP() ORDER BY ";
$query = "SELECT c.*, ch.title AS chapter_title, ch.slug AS chapter_slug, ct.description AS chapter_description FROM comics c LEFT JOIN chapters ch ON c.chapterid = ch.chapterid LEFT JOIN chapters_text ct ON c.chapterid = ct.chapterid WHERE c.pub_date <= UNIX_TIMESTAMP() ORDER BY ";
switch (config('archive_order', 'date')) {
case 'chapter':
$query .= "ch.order ASC, ";
Expand Down

0 comments on commit 930f68c

Please sign in to comment.