]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-6467 add "swf" and "flv" to the list of files for which relative urls are convert...
authorgbateson <gbateson>
Sun, 21 Dec 2008 01:49:16 +0000 (01:49 +0000)
committergbateson <gbateson>
Sun, 21 Dec 2008 01:49:16 +0000 (01:49 +0000)
mod/hotpot/lib.php

index eceecb0224759be97a16d50f24351e3c2b323124..cdf18f2f600eb1963f25a7cc365e168e2eb09f2a 100644 (file)
@@ -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)