mirror of
https://github.com/standardebooks/web.git
synced 2025-07-18 20:36:38 -04:00
Ebook tags: Store UrlName so it can be queried
This commit is contained in:
parent
7339255d5f
commit
7d8cfd351e
3 changed files with 7 additions and 4 deletions
|
@ -40,7 +40,7 @@ class Library{
|
|||
if(sizeof($tags) > 0 && !in_array('all', $tags)){ // 0 tags means "all ebooks"
|
||||
$joinTags = 'inner join EbookTags et using (EbookId)
|
||||
inner join Tags t using (TagId)';
|
||||
$whereCondition .= ' AND t.Name in ' . Db::CreateSetSql($tags) . ' ';
|
||||
$whereCondition .= ' AND t.UrlName in ' . Db::CreateSetSql($tags) . ' ';
|
||||
$params = $tags;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue