Rename the ignored parameter. re #34
This commit is contained in:
parent
76e24d85f3
commit
19dcd73585
4 changed files with 12 additions and 11 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_search_scope']) ||
|
||||
if (in_array($key, $config ['cops_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_search_scope'])) {
|
||||
if (in_array($key, $config ['cops_ignored_categories'])) {
|
||||
continue;
|
||||
}
|
||||
switch ($key) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue