summaryrefslogtreecommitdiffstats
path: root/stream.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-14 06:44:50 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-14 06:44:50 +0000
commit421805ce6ab1d3b2e0a16346c544eadf2d44f8be (patch)
tree61604c8fb8cc23f8cdd196e51c41b31f37c347ae /stream.php
parentcd935ce9508fac75637cac57c3d7855e1f3f754a (diff)
downloadampache-421805ce6ab1d3b2e0a16346c544eadf2d44f8be.tar.gz
ampache-421805ce6ab1d3b2e0a16346c544eadf2d44f8be.tar.bz2
ampache-421805ce6ab1d3b2e0a16346c544eadf2d44f8be.zip
fixed the playlist methods, they all work now... semi-bug where the rightbar does not refresh when the playlist is cleared so its not obvious it worked until a manual reload, will fix later
Diffstat (limited to 'stream.php')
-rw-r--r--stream.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/stream.php b/stream.php
index 38b950fe..995367c1 100644
--- a/stream.php
+++ b/stream.php
@@ -76,6 +76,12 @@ switch ($_REQUEST['action']) {
} // end switch on type
} // end foreach
+ // Check to see if 'clear' was passed if it was then we need to reset the basket
+ // FIXME: We need to reload the rightbar when we do this... sigh...
+ if ($_REQUEST['playlist_method'] == 'clear' || $GLOBALS['user']->prefs['playlist_method'] == 'clear') {
+ $GLOBALS['user']->playlist->clear();
+ }
+
break;
/* This is run if we need to gather info based on a tmp playlist */
case 'tmp_playlist':