summaryrefslogtreecommitdiffstats
path: root/song.php
diff options
context:
space:
mode:
Diffstat (limited to 'song.php')
-rw-r--r--song.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/song.php b/song.php
index ef3d447a..515392d3 100644
--- a/song.php
+++ b/song.php
@@ -18,6 +18,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+//FIXME: This should be renamed to stream.php as it makes a little more sense
+//FIXME: considering what this file does
require('lib/init.php');
/* If we are running a demo, quick while you still can! */
@@ -25,7 +27,6 @@ if (conf('demo_mode') || !$user->has_access('25')) {
access_denied();
}
-
$song_ids = array();
$web_path = conf('web_path');
@@ -50,7 +51,8 @@ switch ($action) {
break;
/* This is run if we need to gather info based on a tmp playlist */
case 'tmp_playlist':
-
+ $tmp_playlist = new tmpPlaylist($_REQUEST['tmpplaylist_id']);
+ $song_ids = $tmp_playlist->get_items();
break;
case 'single_song':
$song_ids[] = scrub_in($_REQUEST['song_id']);