From: gbateson Date: Thu, 7 May 2009 23:02:34 +0000 (+0000) Subject: when searhcing for urls of next quiz, remove requirement for navigation buttons to... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=801ab89d93f88aca1f1a179be06e3ef721b69f67;p=moodle.git when searhcing for urls of next quiz, remove requirement for navigation buttons to have class="NavButton" --- 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]; }