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 fa6eac4 commit 615852be1690ace916bb6ac8a23d8af963853f61 gbateson committed Dec 21, 2008
Showing with 1 addition and 4 deletions.
  1. +1 −4 mod/hotpot/lib.php
View
@@ -1873,14 +1873,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 615852b

Please sign in to comment.