diff --git a/module/search/control.php b/module/search/control.php index bb0e45f202..a0644d17f8 100644 --- a/module/search/control.php +++ b/module/search/control.php @@ -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']}") )); } }