summaryrefslogtreecommitdiffstats
path: root/lib/class/song.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-10 21:54:32 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-10 21:54:32 +0000
commit67ab0016bfb15415034ace50a63e1c8cbd3f0bd4 (patch)
tree3501a02e93b8d0d8393b7a52a0d45584ab4e990d /lib/class/song.class.php
parent7603bf219716e7419ef051deea4fedf0b108584f (diff)
downloadampache-67ab0016bfb15415034ace50a63e1c8cbd3f0bd4.tar.gz
ampache-67ab0016bfb15415034ace50a63e1c8cbd3f0bd4.tar.bz2
ampache-67ab0016bfb15415034ace50a63e1c8cbd3f0bd4.zip
really removed it this time
Diffstat (limited to 'lib/class/song.class.php')
-rw-r--r--lib/class/song.class.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/class/song.class.php b/lib/class/song.class.php
index 095198d6..0835c7c1 100644
--- a/lib/class/song.class.php
+++ b/lib/class/song.class.php
@@ -777,11 +777,9 @@ class Song {
$port = Config::get('http_port');
if (preg_match("/:\d+/",$web_path)) {
$web_path = str_replace("https://", "http://",$web_path);
- $web_path = preg_replace("/:\d+/",":$port",$web_path);
}
else {
$web_path = str_replace("https://", "http://",$web_path);
- $web_path = str_replace($_SERVER['HTTP_HOST'],$_SERVER['HTTP_HOST'] . ':' . $port,$web_path);
}
}