diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-02-29 06:14:46 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-02-29 06:14:46 +0000 |
commit | 2c337852cff31297d681fb87d3098cc3d9041101 (patch) | |
tree | 9853ce94387c4cc7756575598dfb1e2de44a8589 /lib/class/stream.class.php | |
parent | c1f2b35e2a18b0752746f5db5794cf18714bc71d (diff) | |
download | ampache-2c337852cff31297d681fb87d3098cc3d9041101.tar.gz ampache-2c337852cff31297d681fb87d3098cc3d9041101.tar.bz2 ampache-2c337852cff31297d681fb87d3098cc3d9041101.zip |
major corrections to reading of preferences and a few misc fixes which I have now forgotten
Diffstat (limited to 'lib/class/stream.class.php')
-rw-r--r-- | lib/class/stream.class.php | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/class/stream.class.php b/lib/class/stream.class.php index 80d05654..fee74523 100644 --- a/lib/class/stream.class.php +++ b/lib/class/stream.class.php @@ -223,9 +223,6 @@ class Stream { } $song = new Song($song_id); if ($song->type == ".flac") { $song->type = ".ogg"; } - if ($GLOBALS['user']->prefs['play_type'] == 'downsample') { - $ds = $GLOBALS['user']->prefs['sample_rate']; - } echo $song->get_url(); } // end foreach @@ -408,7 +405,7 @@ class Stream { //FIXME: This needs to go in a template, here for now though //FIXME: This preference doesn't even exists, we'll eventually //FIXME: just make it the default - if ($GLOBALS['user']->prefs['embed_xspf'] == 1 ){ + if (Config::get('embed_xspf') == 1 ){ header("Location: ".Config::get('web_path')."/index.php?xspf&play_info=".$GLOBALS['user']->playlist->id); } else { @@ -446,7 +443,7 @@ class Stream { function create_localplay() { // First figure out what their current one is and create the object - $localplay = new Localplay($GLOBALS['user']->prefs['localplay_controller']); + $localplay = new Localplay(Config::get('localplay_controller')); $localplay->connect(); //HACK!!! // Yea.. you know the baby jesus... he's crying right meow @@ -526,7 +523,7 @@ class Stream { $max_bitrate = Config::get('max_bit_rate'); $min_bitrate = Config::get('min_bit_rate'); $time = time(); - $user_sample_rate = $GLOBALS['user']->prefs['sample_rate']; + $user_sample_rate = Config::get('sample_rate'); $browser = new Browser(); if (!$song_name) { @@ -705,9 +702,9 @@ class Stream { if (AJAX_INCLUDE != '1') { return false; } // If we're doin the flash magic then run away as well - if ($GLOBALS['user']->prefs['play_type'] == 'xspf_player') { return false; } + if (Config::get('play_type') == 'xspf_player') { return false; } - switch ($GLOBALS['user']->prefs['playlist_method']) { + switch (Config::get('playlist_method')) { default: case 'clear': case 'default': |