From: gbateson Date: Sun, 21 Dec 2008 01:49:16 +0000 (+0000) Subject: MDL-6467 add "swf" and "flv" to the list of files for which relative urls are convert... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=82cbedd1ae4a1349db198f9c7462e3477c02f4a5;p=moodle.git MDL-6467 add "swf" and "flv" to the list of files for which relative urls are converted to absolute urls --- diff --git a/mod/hotpot/lib.php b/mod/hotpot/lib.php index eceecb0224..cdf18f2f60 100644 --- a/mod/hotpot/lib.php +++ b/mod/hotpot/lib.php @@ -1889,14 +1889,11 @@ class hotpot_xml_quiz extends hotpot_xml_tree { //include_once "$CFG->dirroot/filter/mediaplugin/filter.php"; include_once "$CFG->dirroot/mod/hotpot/mediaplayers/moodle/filter.php"; - // exclude swf files from the filter - //$CFG->filter_mediaplugin_ignore_swf = true; - $space = '\s(?:.+\s)?'; $quote = '["'."']?"; // single, double, or no quote // patterns to media files types and paths - $filetype = "avi|mpeg|mpg|mp3|mov|wmv"; + $filetype = "avi|mpeg|mpg|mp3|mov|wmv|swf|flv"; $filepath = ".*?\.($filetype)"; $tagopen = '(?:(<)|(\\\\u003C))'; // left angle-bracket (uses two parenthese)