This commit is contained in:
caoyanyi
2023-04-26 20:55:39 +08:00
+1 -14
View File
@@ -11,19 +11,6 @@
*/
class search extends control
{
/**
* Determine whether to display the effort object.
*
* @access public
* @return void
*/
public function __construct($module = '', $method = '')
{
parent::__construct($module, $method);
if($this->config->edition != 'max') unset($this->lang->search->modules['effort']);
if($this->config->systemMode == 'light') unset($this->lang->search->modules['program']);
}
/**
* Build search form.
*
@@ -191,7 +178,7 @@ class search extends control
}
else
{
$type = zget($this->lang->search->modules, ($result['type'] == 'case' ? 'testcase' : $result['type']), $result['type']);
$type = zget($this->lang->search->modules, ($result['type'] == 'testcase' ? 'case' : $result['type']), $result['type']);
return $this->send(array('result' => 'unfinished', 'message' => sprintf($this->lang->search->buildResult, $type, $type, $result['count']), 'type' => $type, 'count' => $result['count'], 'next' => inlink('buildIndex', "type={$result['type']}&lastID={$result['lastID']}") ));
}
}