diff options
author | Paul Arthur <paul.arthur@flowerysong.com> | 2013-04-23 14:35:09 -0400 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2013-04-23 14:43:37 -0400 |
commit | df92e52dd3d118249c2adec9dd57dd61a53995b4 (patch) | |
tree | a5c734b86871c67f3559022a13c3b2eb46b4979c /lib | |
parent | 8033c8b7a712a1f363f7e59c844c42214e8424f6 (diff) | |
download | ampache-df92e52dd3d118249c2adec9dd57dd61a53995b4.tar.gz ampache-df92e52dd3d118249c2adec9dd57dd61a53995b4.tar.bz2 ampache-df92e52dd3d118249c2adec9dd57dd61a53995b4.zip |
Clean up Random::play_url()
Include the correct type parameter in the URL and rename the random
type parameter to random_type.
Remove unused parameters from the function call.
Should fix issue #11
Diffstat (limited to 'lib')
-rw-r--r-- | lib/class/random.class.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/class/random.class.php b/lib/class/random.class.php index aa12ed9b..a4756db9 100644 --- a/lib/class/random.class.php +++ b/lib/class/random.class.php @@ -94,18 +94,18 @@ class Random implements media { /** * play_url + * * This generates a random play url based on the passed type * and returns it */ - public static function play_url($id,$sid='',$force_http='') { - + public static function play_url($id) { if (!$type = self::get_id_type($id)) { return false; } $uid = $GLOBALS['user']->id; - $url = Stream::get_base_url() . "random=1&type=$type&uid=$uid"; + $url = Stream::get_base_url() . "type=song&random=1&random_type=$type&uid=$uid"; return $url; |