]> git.mjollnir.org Git - moodle.git/commitdiff
when search for media players, remove requirment for <object> tag to contain a space...
authorgbateson <gbateson>
Mon, 30 Mar 2009 07:03:55 +0000 (07:03 +0000)
committergbateson <gbateson>
Mon, 30 Mar 2009 07:03:55 +0000 (07:03 +0000)
mod/hotpot/lib.php

index 9b7bbc9af10435e43d46701e3cff6bd8f9c77171..6c0a269c9752d20da921dbda12ff845a445e5870 100644 (file)
@@ -1893,10 +1893,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 <a> 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 <object> 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++) {