]> git.mjollnir.org Git - moodle.git/commitdiff
when searhcing for urls of next quiz, remove requirement for navigation buttons to...
authorgbateson <gbateson>
Thu, 7 May 2009 23:02:34 +0000 (23:02 +0000)
committergbateson <gbateson>
Thu, 7 May 2009 23:02:34 +0000 (23:02 +0000)
mod/hotpot/lib.php

index 17e13191dd7a1d568660c400d6394d035650a80f..f1ebad4eb371d34f0dfbe6a73ef1ee633e1c4ee2 100644 (file)
@@ -701,7 +701,7 @@ function hotpot_get_titles_and_next_ex(&$hotpot, $filepath, $get_next=false) {
             if ($get_next) {
                 if (preg_match('|<div[^>]*class="NavButtonBar"[^>]*>(.*?)</div>|is', $source, $matches)) {
                     $navbuttonbar = $matches[1];
-                    if (preg_match_all('|<button[^>]*class="NavButton"[^>]*onclick="'."location='([^']*)'".'[^"]*"[^>]*>|is', $navbuttonbar, $matches)) {
+                    if (preg_match_all('|<button[^>]*onclick="'."location='([^']*)'".'[^"]*"[^>]*>|is', $navbuttonbar, $matches)) {
                         $lastbutton = count($matches[0])-1;
                         $next = $matches[1][$lastbutton];
                     }