From 2c337852cff31297d681fb87d3098cc3d9041101 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Fri, 29 Feb 2008 06:14:46 +0000 Subject: major corrections to reading of preferences and a few misc fixes which I have now forgotten --- stream.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'stream.php') diff --git a/stream.php b/stream.php index 996f2b8b..dd66a579 100644 --- a/stream.php +++ b/stream.php @@ -1,7 +1,7 @@ has_access('25')) { + access_denied(); exit; } @@ -62,7 +62,7 @@ switch ($_REQUEST['action']) { } // end foreach // Check to see if 'clear' was passed if it was then we need to reset the basket - if ( ($_REQUEST['playlist_method'] == 'clear' || $GLOBALS['user']->prefs['playlist_method'] == 'clear') AND $GLOBALS['user']->prefs['play_method'] != 'xspf_player') { + if ( ($_REQUEST['playlist_method'] == 'clear' || Config::get('playlist_method') == 'clear') AND Config::get('play_method') != 'xspf_player') { $GLOBALS['user']->playlist->clear(); } @@ -179,15 +179,15 @@ switch ($_REQUEST['method']) { break; case 'democratic': // Don't let them loop it - if ($GLOBALS['user']->prefs['play_type'] == 'democratic') { - $GLOBALS['user']->prefs['play_type'] = 'stream'; + if (Config::get('play_type') == 'democratic') { + Config::set('play_type','stream','1'); } default: - if ($GLOBALS['user']->prefs['play_type'] == 'stream') { - $stream_type = $GLOBALS['user']->prefs['playlist_type']; + if (Config::get('play_type') == 'stream') { + $stream_type = Config::get('playlist_type'); } else { - $stream_type = $GLOBALS['user']->prefs['play_type']; + $stream_type = Config::get('play_type'); } break; } -- cgit