summaryrefslogtreecommitdiffstats
path: root/lib/class/stream.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-24 19:51:11 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-11-24 19:51:11 +0000
commit3508380e994d80c6df1a287606a969c218d81694 (patch)
tree051e95a5541256f344bacd8d11df6a484f1f77cf /lib/class/stream.class.php
parent9344fd377da5c65a0aabf0ad9838e60dd08ff7f9 (diff)
downloadampache-3508380e994d80c6df1a287606a969c218d81694.tar.gz
ampache-3508380e994d80c6df1a287606a969c218d81694.tar.bz2
ampache-3508380e994d80c6df1a287606a969c218d81694.zip
democratic play on its way to being fixed, can add songs to a playlist, and view them ca not play it or delete/vote yet...
Diffstat (limited to 'lib/class/stream.class.php')
-rw-r--r--lib/class/stream.class.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/class/stream.class.php b/lib/class/stream.class.php
index 06f9c45a..9aa1f76a 100644
--- a/lib/class/stream.class.php
+++ b/lib/class/stream.class.php
@@ -469,13 +469,11 @@ class Stream {
* This 'votes' on the songs it inserts them into
* a tmp_playlist with user of -1 (System)
*/
- function create_democratic() {
+ public function create_democratic() {
- $tmp_playlist = get_democratic_playlist('-1');
+ $tmp_playlist = Democratic::get_current_playlist();
$tmp_playlist->vote($this->songs);
- header("Location: " . return_referer());
-
} // create_democratic
/**