summaryrefslogtreecommitdiffstats
path: root/lib/class/random.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-02-02 04:25:25 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-02-02 04:25:25 +0000
commit00effbf55451016e5863e27de93344dfb4a50216 (patch)
treefe1300051d65f14fd34dd53bc7148a47c8e3d5a6 /lib/class/random.class.php
parent0a2b41b143419e85b968a675c8b83a1c15615399 (diff)
downloadampache-00effbf55451016e5863e27de93344dfb4a50216.tar.gz
ampache-00effbf55451016e5863e27de93344dfb4a50216.tar.bz2
ampache-00effbf55451016e5863e27de93344dfb4a50216.zip
Add very basic buggy as crap video support, fix a few other minor bugs with playlists and random elements
Diffstat (limited to 'lib/class/random.class.php')
-rw-r--r--lib/class/random.class.php18
1 files changed, 1 insertions, 17 deletions
diff --git a/lib/class/random.class.php b/lib/class/random.class.php
index 0865f23f..8c8a55e7 100644
--- a/lib/class/random.class.php
+++ b/lib/class/random.class.php
@@ -97,25 +97,9 @@ class Random {
return false;
}
- if (Config::get('require_session')) {
- $session_string = '&sid=' . Stream::get_session();
- }
-
- $web_path = Config::get('web_path');
-
- if (Config::get('force_http_play') OR !empty($force_http)) {
- $port = Config::get('http_port');
- if (preg_match("/:\d+/",$web_path)) {
- $web_path = str_replace("https://", "http://",$web_path);
- }
- else {
- $web_path = str_replace("https://", "http://",$web_path);
- }
- }
-
$uid = $GLOBALS['user']->id;
- $url = $web_path . "/play/index.php?random=1&type=$type&uid=$uid$session_string";
+ $url = Stream::get_base_url() . "random=1&type=$type&uid=$uid$session_string";
return $url;