summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorPaul Arthur <flowerysong00@yahoo.com>2011-04-02 00:22:55 -0400
committerPaul Arthur <flowerysong00@yahoo.com>2011-04-02 00:48:58 -0400
commita9da6a6fa22325ba0dfecd4d46ae23305473796f (patch)
treeacef914ee602bfeb3eed98f5f06e79603a6eb74f /server
parent91a6eb3a682667f49122fab5d807e8650c0d3959 (diff)
downloadampache-a9da6a6fa22325ba0dfecd4d46ae23305473796f.tar.gz
ampache-a9da6a6fa22325ba0dfecd4d46ae23305473796f.tar.bz2
ampache-a9da6a6fa22325ba0dfecd4d46ae23305473796f.zip
Reworked search
Still has tentacles and should have been integrated into the existing API/Browse implementation better, but it's functional.
Diffstat (limited to 'server')
-rw-r--r--server/browse.ajax.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/browse.ajax.php b/server/browse.ajax.php
index 60d3cb8d..f24511b0 100644
--- a/server/browse.ajax.php
+++ b/server/browse.ajax.php
@@ -99,6 +99,12 @@ switch ($_REQUEST['action']) {
$playlist->delete();
$key = 'playlist_row_' . $playlist->id;
break;
+ case 'smartplaylist':
+ $playlist = new Search('song', $_REQUEST['id']);
+ if (!$playlist->has_access()) { exit; }
+ $playlist->delete();
+ $key = 'playlist_row_' . $playlist->id;
+ break;
case 'live_stream':
if (!$GLOBALS['user']->has_access('75')) { exit; }
$radio = new Radio($_REQUEST['id']);