Commit 22779fdf authored by Aaron Wells's avatar Aaron Wells Committed by Melissa Draper
Browse files

internalmedia/lib.php: Changing flowplayer invocation to only use relative URLs



Change-Id: Iae96e62951e2e9504f4b4988fa59e7ce1f1d1368
Signed-off-by: Aaron Wells's avatarAaron Wells <aaronw@catalyst.net.nz>
parent e800bcf1
......@@ -282,9 +282,11 @@ class PluginBlocktypeInternalmedia extends PluginBlocktype {
$id = 'blocktype_internalmedia_flow_' . time() . $count;
$url = self::get_download_link($artefact, $block);
$url = parse_url($url, PHP_URL_PATH) . '?' . parse_url($url, PHP_URL_QUERY);
$escapedurl = str_replace('&', '%26', $url); // Flash needs these escaped
$baseurl = get_config('wwwroot') . 'artefact/file/blocktype/internalmedia/';
$baseurlpath = parse_url(get_config('wwwroot'), PHP_URL_PATH);
$baseurl = $baseurlpath . 'artefact/file/blocktype/internalmedia/';
$playerurl = $baseurl . 'flowplayer/flowplayer-3.2.7.swf';
$autohide = 'true';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment