summaryrefslogtreecommitdiffstats
path: root/stream.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-03-11 02:46:48 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-03-11 02:46:48 +0000
commitb49a271f889a26e40b16fb6f78b47f2e320b40c8 (patch)
tree3480bb8a8350f5bdbacc4a3325e2c516912b43dd /stream.php
parent4b191ae6bb833c399e0d5f7606354bcd8127e436 (diff)
downloadampache-b49a271f889a26e40b16fb6f78b47f2e320b40c8.tar.gz
ampache-b49a271f889a26e40b16fb6f78b47f2e320b40c8.tar.bz2
ampache-b49a271f889a26e40b16fb6f78b47f2e320b40c8.zip
fix missing page headers on democratic playlist, also show the voters
Diffstat (limited to 'stream.php')
-rw-r--r--stream.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/stream.php b/stream.php
index 115be99c..ff92a308 100644
--- a/stream.php
+++ b/stream.php
@@ -113,7 +113,7 @@ switch ($_REQUEST['action']) {
break;
case 'democratic':
$democratic = new Democratic($_REQUEST['democratic_id']);
- $urls[] = $democratic->play_url();
+ $urls = array($democratic->play_url());
break;
case 'download':
$media_ids[] = $_REQUEST['song_id'];
@@ -161,9 +161,7 @@ switch ($_REQUEST['method']) {
/* Start the Stream */
$stream = new Stream($stream_type,$media_ids);
- if (is_array($urls)) {
- $stream->manual_url_add($urls);
- }
+ $stream->add_urls($urls);
$stream->start();
} // end method switch