summaryrefslogtreecommitdiffstats
path: root/playlist.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-09-11 03:41:50 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-09-11 03:41:50 +0000
commit87c3f8292fd158329cf1abecca6e651a22a7ee89 (patch)
tree1f739db8f9bfefaef035053585c3edfdac828c50 /playlist.php
parenta3a07028fb45e9ebc0c741853f3e2b838f03bd12 (diff)
downloadampache-87c3f8292fd158329cf1abecca6e651a22a7ee89.tar.gz
ampache-87c3f8292fd158329cf1abecca6e651a22a7ee89.tar.bz2
ampache-87c3f8292fd158329cf1abecca6e651a22a7ee89.zip
fixed up some playlist snafus now appends to playlist and remembers last used
Diffstat (limited to 'playlist.php')
-rw-r--r--playlist.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/playlist.php b/playlist.php
index f70bcd18..7e8fcd82 100644
--- a/playlist.php
+++ b/playlist.php
@@ -86,6 +86,8 @@ switch ($action) {
/* Show the Playlist */
$_REQUEST['playlist_id'] = $playlist->id;
+ /* Store this new id in the session for later use */
+ $_SESSION['data']['playlist_id'] = $playlist->id;
show_playlist($playlist);
break;
case 'add_dyn_song':
@@ -96,6 +98,7 @@ switch ($action) {
}
$playlist->add_dyn_song();
+ $_SESSION['data']['playlist_id'] = $playlist->id;
show_playlist($playlist);
break;
case 'create_playlist':
@@ -110,6 +113,7 @@ switch ($action) {
$playlist_type = scrub_in($_REQUEST['type']);
$playlist->create($playlist_name,$playlist_type);
+ $_SESSION['data']['playlist_id'] = $playlist->id;
show_confirmation(_('Playlist Created'),$playlist_name . ' (' . $playlist_type . ') ' . _(' has been created'),'playlist.php');
break;
case 'edit':