kopia lustrzana https://github.com/magicbug/Cloudlog
When saving profile changes your returned to Edit Account for the logged in profile
rodzic
305a29355e
commit
467bace222
|
@ -269,10 +269,10 @@ class User extends CI_Controller {
|
|||
// All okay, return to user screen
|
||||
case OK:
|
||||
if($this->session->userdata('user_id') == $this->input->post('id', true)) {
|
||||
$this->session->set_flashdata('notice', 'User '.$this->input->post('user_name', true).' edited');
|
||||
redirect('user/profile');
|
||||
$this->session->set_flashdata('success', 'User '.$this->input->post('user_name', true).' edited');
|
||||
redirect('user/edit/'.$this->uri->segment(3));
|
||||
} else {
|
||||
$this->session->set_flashdata('notice', 'User '.$this->input->post('user_name', true).' edited');
|
||||
$this->session->set_flashdata('success', 'User '.$this->input->post('user_name', true).' edited');
|
||||
redirect('user');
|
||||
}
|
||||
return;
|
||||
|
|
Ładowanie…
Reference in New Issue