Typo. re #123
这个提交存在于:
父节点
d6d63e7ee3
当前提交
2a20fa688e
共有 3 个文件被更改,包括 5 次插入 和 5 次删除
4
book.php
4
book.php
|
|
@ -561,7 +561,7 @@ where data.book = books.id and data.id = ?');
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$critArray = array ();
|
$critArray = array ();
|
||||||
foreach (array ("author", "tag", "series", "publisher", "book") as $key) {
|
foreach (array ("author", "tag", "series", "publisher", "book") as $key) {
|
||||||
if (in_array($key, $config ['cops_ingored_search_scope']) ||
|
if (in_array($key, $config ['cops_ignored_search_scope']) ||
|
||||||
(!array_key_exists ($key, $query) && !array_key_exists ("all", $query))) {
|
(!array_key_exists ($key, $query) && !array_key_exists ("all", $query))) {
|
||||||
$critArray [$i] = self::BAD_SEARCH;
|
$critArray [$i] = self::BAD_SEARCH;
|
||||||
}
|
}
|
||||||
|
|
@ -654,7 +654,7 @@ function getJson ($complete = false) {
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (array ("book", "author", "series", "tag", "publisher") as $key) {
|
foreach (array ("book", "author", "series", "tag", "publisher") as $key) {
|
||||||
if (in_array($key, $config ['cops_ingored_search_scope'])) {
|
if (in_array($key, $config ['cops_ignored_search_scope'])) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
switch ($key) {
|
switch ($key) {
|
||||||
|
|
|
||||||
|
|
@ -245,4 +245,4 @@
|
||||||
* - tag
|
* - tag
|
||||||
* - publisher
|
* - publisher
|
||||||
*/
|
*/
|
||||||
$config ['cops_ingored_search_scope'] = array ();
|
$config ['cops_ignored_search_scope'] = array ();
|
||||||
|
|
|
||||||
|
|
@ -510,7 +510,7 @@ class PageTest extends PHPUnit_Framework_TestCase
|
||||||
// Match Lewis Caroll & Scarlet
|
// Match Lewis Caroll & Scarlet
|
||||||
$query = "car";
|
$query = "car";
|
||||||
|
|
||||||
$config ['cops_ingored_search_scope'] = array ("author");
|
$config ['cops_ignored_search_scope'] = array ("author");
|
||||||
$currentPage = Page::getPage ($page, $qid, $query, $n);
|
$currentPage = Page::getPage ($page, $qid, $query, $n);
|
||||||
$currentPage->InitializeContent ();
|
$currentPage->InitializeContent ();
|
||||||
|
|
||||||
|
|
@ -519,7 +519,7 @@ class PageTest extends PHPUnit_Framework_TestCase
|
||||||
$this->assertEquals ("A Study in Scarlet", $currentPage->entryArray [0]->title);
|
$this->assertEquals ("A Study in Scarlet", $currentPage->entryArray [0]->title);
|
||||||
$this->assertTrue ($currentPage->ContainsBook ());
|
$this->assertTrue ($currentPage->ContainsBook ());
|
||||||
|
|
||||||
$config ['cops_ingored_search_scope'] = array ();
|
$config ['cops_ignored_search_scope'] = array ();
|
||||||
$currentPage = Page::getPage ($page, $qid, $query, $n);
|
$currentPage = Page::getPage ($page, $qid, $query, $n);
|
||||||
$currentPage->InitializeContent ();
|
$currentPage->InitializeContent ();
|
||||||
|
|
||||||
|
|
|
||||||
正在加载…
添加表格
添加链接
在新工单中引用