summaryrefslogtreecommitdiffstats
path: root/lib/class/song.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-10 03:50:35 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-11-10 03:50:35 +0000
commitad05301d549924663370e447286f68b4c0ccdfde (patch)
tree500bb2a26c909b4ea0020a2e157bf89780d66230 /lib/class/song.class.php
parent29aca5c21898ad71bbb537bf533a8adf0e74978d (diff)
downloadampache-ad05301d549924663370e447286f68b4c0ccdfde.tar.gz
ampache-ad05301d549924663370e447286f68b4c0ccdfde.tar.bz2
ampache-ad05301d549924663370e447286f68b4c0ccdfde.zip
fixed the title on registration, and a bunch of random other things
Diffstat (limited to 'lib/class/song.class.php')
-rw-r--r--lib/class/song.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/class/song.class.php b/lib/class/song.class.php
index c986daa1..69f86db5 100644
--- a/lib/class/song.class.php
+++ b/lib/class/song.class.php
@@ -711,7 +711,7 @@ class Song {
* a stream URL taking into account the downsampling mojo and everything
* else, this is used or will be used by _EVERYTHING_
*/
- function get_url($session_id='') {
+ function get_url($session_id='',$force_http='') {
/* Define Variables we are going to need */
$username = $GLOBALS['user']->username;
@@ -737,7 +737,7 @@ class Song {
$web_path = conf('web_path');
- if (conf('force_http_play')) {
+ if (conf('force_http_play') AND !$force_http) {
$port = conf('http_port');
$web_path = preg_replace("/https/", "http",$web_path);
$web_path = preg_replace("/:\d+/",":$port",$web_path);