MDL-6467 add "swf" and "flv" to the list of files for which relative urls are converted to absolute urls

This commit is contained in:
gbateson
2008-12-21 01:44:29 +00:00
parent c73b015097
commit 284f2e43ec
+1 -4
View File
@@ -1719,14 +1719,11 @@ class hotpot_xml_quiz extends hotpot_xml_tree {
global $CFG;
include_once "$CFG->dirroot/filter/mediaplugin/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)