Fixed URLs with index.php value (work without mod_rewrite)

This commit is contained in:
alextselegidis 2015-05-20 23:18:27 +02:00
parent 879fa93bb1
commit 3062e73d22

View file

@ -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;
}