summaryrefslogtreecommitdiffstats
path: root/song.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-30 04:46:45 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-30 04:46:45 +0000
commit598a200b969da093a99153173129257da080f71b (patch)
treeb9b12acc57a92063b3227f7dc495e62749449f19 /song.php
parent07ad109268f038880d1bd1d4cda299cbff59b83a (diff)
downloadampache-598a200b969da093a99153173129257da080f71b.tar.gz
ampache-598a200b969da093a99153173129257da080f71b.tar.bz2
ampache-598a200b969da093a99153173129257da080f71b.zip
ok this is ugly but it works
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']);