From 801ab89d93f88aca1f1a179be06e3ef721b69f67 Mon Sep 17 00:00:00 2001 From: gbateson Date: Thu, 7 May 2009 23:02:34 +0000 Subject: [PATCH] when searhcing for urls of next quiz, remove requirement for navigation buttons to have class="NavButton" --- mod/hotpot/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/hotpot/lib.php b/mod/hotpot/lib.php index 17e13191dd..f1ebad4eb3 100644 --- a/mod/hotpot/lib.php +++ b/mod/hotpot/lib.php @@ -701,7 +701,7 @@ function hotpot_get_titles_and_next_ex(&$hotpot, $filepath, $get_next=false) { if ($get_next) { if (preg_match('|]*class="NavButtonBar"[^>]*>(.*?)|is', $source, $matches)) { $navbuttonbar = $matches[1]; - if (preg_match_all('|]*class="NavButton"[^>]*onclick="'."location='([^']*)'".'[^"]*"[^>]*>|is', $navbuttonbar, $matches)) { + if (preg_match_all('|]*onclick="'."location='([^']*)'".'[^"]*"[^>]*>|is', $navbuttonbar, $matches)) { $lastbutton = count($matches[0])-1; $next = $matches[1][$lastbutton]; } -- 2.39.5