The ignored categories is now in the customize UI page. re #34
It's far from complete but it works. I'll have to check the strings consistancy.
This commit is contained in:
parent
e0e7392817
commit
c71f443356
14 changed files with 60 additions and 9 deletions
4
book.php
4
book.php
|
@ -602,7 +602,7 @@ where data.book = books.id and data.id = ?');
|
|||
PageQueryResult::SCOPE_SERIES,
|
||||
PageQueryResult::SCOPE_PUBLISHER,
|
||||
PageQueryResult::SCOPE_BOOK) as $key) {
|
||||
if (in_array($key, $config ['cops_ignored_categories']) ||
|
||||
if (in_array($key, getCurrentOption ('ignored_categories')) ||
|
||||
(!array_key_exists ($key, $query) && !array_key_exists ("all", $query))) {
|
||||
$critArray [$i] = self::BAD_SEARCH;
|
||||
}
|
||||
|
@ -694,7 +694,7 @@ function getJson ($complete = false) {
|
|||
PageQueryResult::SCOPE_SERIES,
|
||||
PageQueryResult::SCOPE_TAG,
|
||||
PageQueryResult::SCOPE_PUBLISHER) as $key) {
|
||||
if (in_array($key, $config ['cops_ignored_categories'])) {
|
||||
if (in_array($key, getCurrentOption ('ignored_categories'))) {
|
||||
continue;
|
||||
}
|
||||
switch ($key) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue