diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-03-11 02:46:48 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2009-03-11 02:46:48 +0000 |
commit | b49a271f889a26e40b16fb6f78b47f2e320b40c8 (patch) | |
tree | 3480bb8a8350f5bdbacc4a3325e2c516912b43dd /stream.php | |
parent | 4b191ae6bb833c399e0d5f7606354bcd8127e436 (diff) | |
download | ampache-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.php | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 |