Skip to content
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 c73b015 commit 284f2e43ec3d4ba42b35773741ad4ce501022cf6 gbateson committed Dec 21, 2008
Showing with 1 addition and 4 deletions.
  1. +1 −4 mod/hotpot/lib.php
View
5 mod/hotpot/lib.php
@@ -1719,14 +1719,11 @@ function adjust_media_urls() {
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)

0 comments on commit 284f2e4

Please sign in to comment.
Something went wrong with that request. Please try again.