From 924df0e6c859f25eb38ef7b6f2f93d28b95e991d Mon Sep 17 00:00:00 2001 From: gbateson Date: Mon, 30 Mar 2009 07:13:04 +0000 Subject: [PATCH] when search for media players, remove requirment for tag to contain a space, and make closing tag lowercase --- mod/hotpot/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/hotpot/lib.php b/mod/hotpot/lib.php index df0ed2d7e27..69c73872463 100644 --- a/mod/hotpot/lib.php +++ b/mod/hotpot/lib.php @@ -1736,10 +1736,10 @@ class hotpot_xml_quiz extends hotpot_xml_tree { $param_url = "/{$tagopen}param{$space}name=$quote(?:movie|src|url)$quote{$space}value=$quote($filepath)$quote.*?$tagclose/is"; // pattern to match tags which link to multimedia files - $link_url = "/{$tagopen}a{$space}href=$quote($filepath)$quote.*?$tagclose.*?$tagreopen\/A$tagclose/is"; + $link_url = "/{$tagopen}a{$space}href=$quote($filepath)$quote.*?$tagclose.*?$tagreopen\/a$tagclose/is"; // extract tags - preg_match_all("/{$tagopen}object\s.*?{$tagclose}(.*?){$tagreopen}\/object{$tagclose}/is", $this->html, $objects); + preg_match_all("/{$tagopen}object.*?{$tagclose}(.*?){$tagreopen}\/object{$tagclose}/is", $this->html, $objects); $i_max = count($objects[0]); for ($i=0; $i<$i_max; $i++) {