From 80b0748b4a43087aed6802b6b631f064f975f097 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Thu, 23 Mar 2006 09:01:04 +0000 Subject: fixed playlist name editing so confirmation box works, and its a little snazzier now --- playlist.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'playlist.php') diff --git a/playlist.php b/playlist.php index 828784bd..1f802202 100644 --- a/playlist.php +++ b/playlist.php @@ -112,7 +112,7 @@ switch ($action) { show_confirmation(_('Playlist Created'),$playlist_name . ' (' . $playlist_type . ') ' . _(' has been created'),'playlist.php'); break; case 'edit': - show_playlist_edit($playlist); + show_playlist_edit($_REQUEST['playlist_id']); break; case 'new': show_playlist_create(); @@ -127,7 +127,7 @@ switch ($action) { $playlist->remove_songs($_REQUEST['song']); show_playlist($playlist); break; - case 'update': + case 'update_playlist': /* Make sure they've got thems rights */ if (!$playlist->has_access()) { access_denied(); @@ -135,8 +135,11 @@ switch ($action) { } $playlist->update_type($_REQUEST['type']); - $playlist->update_name($_REQUEST['new_playlist_name']); - show_confirmation(_('Playlist Updated'),$playlist_name . ' (' . $playlist_type . ') ' . _(' has been updated'),'playlist.php?action=show_playlist&playlist_id=' . $playlist->id); + $playlist->update_name($_REQUEST['playlist_name']); + $url = conf('web_path') . '/playlist.php?action=show_playlist&playlist_id=' . $playlist->id; + $title = _('Playlist Updated'); + $body = "$playlist->name " . _('has been updated and is now') . " $playlist->type"; + show_confirmation($title,$body,$url); break; case 'show_playlist': show_playlist($playlist); -- cgit