Extend the ignored parameter to the home screen. re #34
This commit is contained in:
父節點
363ed0c0a5
當前提交
76e24d85f3
共有 1 個文件被更改,包括 19 次插入 和 11 次删除
30
base.php
30
base.php
|
@ -464,17 +464,25 @@ class Page
|
||||||
Base::clearDb ();
|
Base::clearDb ();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
array_push ($this->entryArray, Author::getCount());
|
if (!in_array ("author", $config ['cops_ignored_search_scope'])) {
|
||||||
$series = Serie::getCount();
|
array_push ($this->entryArray, Author::getCount());
|
||||||
if (!is_null ($series)) array_push ($this->entryArray, $series);
|
}
|
||||||
|
if (!in_array ("series", $config ['cops_ignored_search_scope'])) {
|
||||||
$publisher = Publisher::getCount();
|
$series = Serie::getCount();
|
||||||
if (!is_null ($publisher)) array_push ($this->entryArray, $publisher);
|
if (!is_null ($series)) array_push ($this->entryArray, $series);
|
||||||
|
}
|
||||||
$tags = Tag::getCount();
|
if (!in_array ("publisher", $config ['cops_ignored_search_scope'])) {
|
||||||
if (!is_null ($tags)) array_push ($this->entryArray, $tags);
|
$publisher = Publisher::getCount();
|
||||||
$languages = Language::getCount();
|
if (!is_null ($publisher)) array_push ($this->entryArray, $publisher);
|
||||||
if (!is_null ($languages)) array_push ($this->entryArray, $languages);
|
}
|
||||||
|
if (!in_array ("tag", $config ['cops_ignored_search_scope'])) {
|
||||||
|
$tags = Tag::getCount();
|
||||||
|
if (!is_null ($tags)) array_push ($this->entryArray, $tags);
|
||||||
|
}
|
||||||
|
if (!in_array ("language", $config ['cops_ignored_search_scope'])) {
|
||||||
|
$languages = Language::getCount();
|
||||||
|
if (!is_null ($languages)) array_push ($this->entryArray, $languages);
|
||||||
|
}
|
||||||
foreach ($config['cops_calibre_custom_column'] as $lookup) {
|
foreach ($config['cops_calibre_custom_column'] as $lookup) {
|
||||||
$customId = CustomColumn::getCustomId ($lookup);
|
$customId = CustomColumn::getCustomId ($lookup);
|
||||||
if (!is_null ($customId)) {
|
if (!is_null ($customId)) {
|
||||||
|
|
載入中…
Add table
Add a link
Reference in a new issue