Skip to content

Commit

Permalink
Merge pull request benedmunds#1237 from bedrijfsportaal/patch-2
Browse files Browse the repository at this point in the history
Fix for different directory separator
  • Loading branch information
benedmunds authored May 1, 2018
2 parents 90be993 + c2f5853 commit 1b6a632
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions controllers/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function index()
$this->data['users'][$k]->groups = $this->ion_auth->get_users_groups($user->id)->result();
}

$this->_render_page('auth/index', $this->data);
$this->_render_page('auth' . DIRECTORY_SEPARATOR . 'index', $this->data);
}
}

Expand Down Expand Up @@ -106,7 +106,7 @@ public function login()
'type' => 'password',
];

$this->_render_page('auth/login', $this->data);
$this->_render_page('auth' . DIRECTORY_SEPARATOR . 'login', $this->data);
}
}

Expand Down Expand Up @@ -173,7 +173,7 @@ public function change_password()
];

// render
$this->_render_page('auth/change_password', $this->data);
$this->_render_page('auth' . DIRECTORY_SEPARATOR . 'change_password', $this->data);
}
else
{
Expand Down Expand Up @@ -233,7 +233,7 @@ public function forgot_password()

// set any errors and display the form
$this->data['message'] = (validation_errors()) ? validation_errors() : $this->session->flashdata('message');
$this->_render_page('auth/forgot_password', $this->data);
$this->_render_page('auth' . DIRECTORY_SEPARATOR . 'forgot_password', $this->data);
}
else
{
Expand Down Expand Up @@ -326,7 +326,7 @@ public function reset_password($code = NULL)
$this->data['code'] = $code;

// render
$this->_render_page('auth/reset_password', $this->data);
$this->_render_page('auth' . DIRECTORY_SEPARATOR . 'reset_password', $this->data);
}
else
{
Expand Down Expand Up @@ -427,7 +427,7 @@ public function deactivate($id = NULL)
$this->data['csrf'] = $this->_get_csrf_nonce();
$this->data['user'] = $this->ion_auth->user($id)->row();

$this->_render_page('auth/deactivate_user', $this->data);
$this->_render_page('auth' . DIRECTORY_SEPARATOR . 'deactivate_user', $this->data);
}
else
{
Expand Down Expand Up @@ -560,7 +560,7 @@ public function create_user()
'value' => $this->form_validation->set_value('password_confirm'),
];

$this->_render_page('auth/create_user', $this->data);
$this->_render_page('auth' . DIRECTORY_SEPARATOR . 'create_user', $this->data);
}
}
/**
Expand Down Expand Up @@ -828,7 +828,7 @@ public function edit_group($id)
'value' => $this->form_validation->set_value('group_description', $group->description),
];

$this->_render_page('auth/edit_group', $this->data);
$this->_render_page('auth' . DIRECTORY_SEPARATOR . 'edit_group', $this->data);
}

/**
Expand Down

0 comments on commit 1b6a632

Please sign in to comment.