Permalink
Browse files

when searhcing for urls of next quiz, remove requirement for navigati…

…on buttons to have class="NavButton"
  • Loading branch information...
1 parent 80fbfbb commit 6f806335e06691961913fa8addb624635994d002 gbateson committed May 7, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/hotpot/lib.php
View
2 mod/hotpot/lib.php
@@ -707,7 +707,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];
}

0 comments on commit 6f80633

Please sign in to comment.