Permalink
Browse files

MDL-6467 add "swf" and "flv" to the list of files for which relative …

…urls are converted to absolute urls
  • Loading branch information...
1 parent 5935cf5 commit 3d9e194de69dd602c7079f8004d6f5968623e588 gbateson committed Dec 21, 2008
Showing with 1 addition and 4 deletions.
  1. +1 −4 mod/hotpot/lib.php
View
@@ -1748,14 +1748,11 @@ function adjust_media_urls() {
//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)

0 comments on commit 3d9e194

Please sign in to comment.