diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-02-08 21:19:24 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-02-08 21:19:24 +0000 |
commit | bbf79a59703ef3ba4ed63c8143f97d9da5a73b8d (patch) | |
tree | 05f6f2d03208da257d5ad4864a93a6797cc499c3 /lib/class/song.class.php | |
parent | aa0c57afc44b8f804c2f553d2d264ed62fc16121 (diff) | |
download | ampache-bbf79a59703ef3ba4ed63c8143f97d9da5a73b8d.tar.gz ampache-bbf79a59703ef3ba4ed63c8143f97d9da5a73b8d.tar.bz2 ampache-bbf79a59703ef3ba4ed63c8143f97d9da5a73b8d.zip |
* Initial Database Changes for 3.4, many things are now broken
Diffstat (limited to 'lib/class/song.class.php')
-rw-r--r-- | lib/class/song.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/class/song.class.php b/lib/class/song.class.php index 36785a36..64c99509 100644 --- a/lib/class/song.class.php +++ b/lib/class/song.class.php @@ -799,7 +799,7 @@ class Song { function get_url($session_id='',$force_http='') { /* Define Variables we are going to need */ - $username = scrub_out($GLOBALS['user']->username); + $user_id = scrub_out($GLOBALS['user']->id); $song_id = $this->id; if (conf('require_session')) { @@ -837,7 +837,7 @@ class Song { } } - $url = $web_path . "/play/index.php?song=$song_id&uid=$username$session_string$ds_string&name=/$song_name"; + $url = $web_path . "/play/index.php?song=$song_id&uid=$user_id$session_string$ds_string&name=/$song_name"; return $url; |