résolution d'un bug
This commit is contained in:
@@ -50,8 +50,9 @@ class Chansons extends CI_Controller {
|
||||
$this->load->view('layout/footer');
|
||||
}else{
|
||||
$playlistId = $this->input->post('playlist_id');
|
||||
$url = $this->input->get('page');
|
||||
$this->model_music->AddSongtoPlaylist($playlistId,$id);
|
||||
redirect('chansons');
|
||||
redirect($url);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,8 +67,9 @@ class Chansons extends CI_Controller {
|
||||
$this->load->view('layout/footer');
|
||||
}else{
|
||||
$playlistId = $this->input->post('playlist_id');
|
||||
$url = $this->input->get('page');
|
||||
$this->model_music->DeleteSongtoPlaylist($playlistId,$id);
|
||||
redirect('chansons');
|
||||
redirect($url);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user