summaryrefslogtreecommitdiffstats
path: root/tv.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-05 21:48:43 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-05 21:48:43 +0000
commita8589cef1e311a032a67ecdc61e2b73197373288 (patch)
treecfd486596c2126247acfca5a026db2c27cf06277 /tv.php
parentf24fa20acbd2d7ff7175dab391e75f743c634e87 (diff)
downloadampache-a8589cef1e311a032a67ecdc61e2b73197373288.tar.gz
ampache-a8589cef1e311a032a67ecdc61e2b73197373288.tar.bz2
ampache-a8589cef1e311a032a67ecdc61e2b73197373288.zip
working democratic play
Diffstat (limited to 'tv.php')
-rw-r--r--tv.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/tv.php b/tv.php
index 77a69e99..9176b1fc 100644
--- a/tv.php
+++ b/tv.php
@@ -18,12 +18,8 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-
require_once('lib/init.php');
-/* Additional Library for tv stuff */
-require_once (conf('prefix') . '/lib/democratic.lib.php');
-
$dbh = dbh();
$web_path = conf('web_path');
@@ -44,10 +40,12 @@ switch ($action) {
/* Re-generate the playlist */
$tmp_playlist = new tmpPlaylist($id);
+ $songs = $tmp_playlist->get_items();
require_once(conf('prefix') . '/templates/show_tv.inc.php');
break;
default:
$tmp_playlist = get_democratic_playlist('-1');
+ $songs = $tmp_playlist->get_items();
require_once(conf('prefix') . '/templates/show_tv.inc.php');
break;
} // end switch on action