Rename the ignored parameter. re #34

This commit is contained in:
Sébastien Lucas 2013-12-17 20:56:41 +01:00
parent 76e24d85f3
commit 19dcd73585
4 changed files with 12 additions and 11 deletions

View file

@ -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) {