diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-03-23 09:01:04 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-03-23 09:01:04 +0000 |
commit | 80b0748b4a43087aed6802b6b631f064f975f097 (patch) | |
tree | 045d64e4538693edbd20362085ce506758e7221c /lib | |
parent | 78164aefef355b07df4b28f913f38fc0b0473508 (diff) | |
download | ampache-80b0748b4a43087aed6802b6b631f064f975f097.tar.gz ampache-80b0748b4a43087aed6802b6b631f064f975f097.tar.bz2 ampache-80b0748b4a43087aed6802b6b631f064f975f097.zip |
fixed playlist name editing so confirmation box works, and its a little snazzier now
Diffstat (limited to 'lib')
-rw-r--r-- | lib/playlist.lib.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/playlist.lib.php b/lib/playlist.lib.php index 4dd54c5f..253912e0 100644 --- a/lib/playlist.lib.php +++ b/lib/playlist.lib.php @@ -86,6 +86,20 @@ function show_playlist_menu() { } // show_playlist_menu /** + * show_playlist_edit + * This function shows the edit form for a playlist, nothing special here + */ +function show_playlist_edit($playlist_id) { + + $playlist = new Playlist($playlist_id); + /* Chuck em out if they don't have the rights */ + if (!$playlist->has_access()) { access_denied(); return false; } + + require_once (conf('prefix') . '/templates/show_playlist_edit.inc.php'); + +} // show_playlist_edit + +/** * get_playlists * This function takes private,adminprivate or public and returns an array of playlist objects * that match, it checks permission |