diff --git a/application/controllers/Search.php b/application/controllers/Search.php index 99c34f94..3ef1f1f6 100644 --- a/application/controllers/Search.php +++ b/application/controllers/Search.php @@ -8,7 +8,7 @@ class Search extends CI_Controller { parent::__construct(); $this->load->helper(array('form', 'url')); - if($this->config->item('public_search') != TRUE) { + if($this->optionslib->get_option('global_search') != "true") { $this->load->model('user_model'); if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); } } diff --git a/application/views/interface_assets/header.php b/application/views/interface_assets/header.php index 2ff3a70d..abfe91fc 100644 --- a/application/views/interface_assets/header.php +++ b/application/views/interface_assets/header.php @@ -183,7 +183,7 @@ - config->item('public_search') == TRUE || $this->session->userdata('user_type') >= 2) { ?> + optionslib->get_option('global_search') != "false" || $this->session->userdata('user_type') >= 2) { ?>