summaryrefslogtreecommitdiffstats
path: root/localplay.php
diff options
context:
space:
mode:
Diffstat (limited to 'localplay.php')
-rw-r--r--localplay.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/localplay.php b/localplay.php
index 816f40c4..ba5a5f7d 100644
--- a/localplay.php
+++ b/localplay.php
@@ -42,9 +42,15 @@ show_template('header');
switch ($action) {
- case 'delete_songs':
-
-
+ case 'delete_song':
+ $song_id = scrub_in($_REQUEST['song_id']);
+ $songs = array($song_id);
+ $localplay = init_localplay();
+ $localplay->delete($songs);
+ $url = $web_path . '/localplay.php';
+ $title = _('Song Removed from Playlist');
+ $body = '';
+ show_confirmation($title,$body,$url);
break;
default:
require_once (conf('prefix') . '/templates/show_localplay.inc.php');