Correction du CSS + bugs

This commit is contained in:
stiti
2024-05-25 16:18:50 +02:00
parent b28413726c
commit 8e46a70b25
3 changed files with 54 additions and 5 deletions

View File

@@ -124,10 +124,11 @@ class Playlists extends CI_Controller {
}
public function generate_random() {
$songs = $this->Model_music->get_random_songs(10); // 10 chansons aléatoires
$nbrMusiqueAleatoire = 10;
$songs = $this->Model_music->get_random_songs($nbrMusiqueAleatoire); // 10 chansons aléatoires
$new_playlist = array(
'name' => 'Random Playlist ' . date('Y-m-d H:i:s'),
'description' => 'A randomly generated playlist',
'name' => 'Playlist aléatoire du ' . date('Y-m-d H:i:s'),
'description' => 'Une playlist avec ' . $nbrMusiqueAleatoire . ' musiques aléatoires.',
'utilisateur_id' => $this->session->userdata('user_id')
);