Fixed URLs with index.php value (work without mod_rewrite)
This commit is contained in:
parent
879fa93bb1
commit
3062e73d22
1 changed files with 2 additions and 2 deletions
|
@ -18,9 +18,9 @@ class Test extends CI_Controller {
|
|||
public function index() {
|
||||
// User must be logged in as an admin in order to run the tests.
|
||||
$this->load->library('session');
|
||||
$this->session->set_userdata('dest_url', $this->config->item('base_url') . '/test');
|
||||
$this->session->set_userdata('dest_url', $this->config->item('base_url') . '/index.php/test');
|
||||
if ($this->session->userdata('role_slug') != DB_SLUG_ADMIN) {
|
||||
header('Location: ' . $this->config->item('base_url') . '/user/login');
|
||||
header('Location: ' . $this->config->item('base_url') . '/index.php/user/login');
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue