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:
+1
-4
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user