# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: moodle/mod/quiz/accessrules.php
--- moodle/mod/quiz/accessrules.php Base (1.45)
+++ moodle/mod/quiz/accessrules.php Locally Modified (Based On 1.45)
@@ -238,7 +238,7 @@
                 'status' => false,
                 'menubar' => false,
             );
-            $button->popup_action(new popup_action('click', $url, 'quizpopup', $popupoptions));
+            $button->add_action(new popup_action('click', $this->_quizobj->start_attempt_url(), 'quizpopup', $popupoptions));
 
             $warning = html_writer::tag('noscript',
                     $OUTPUT->heading(get_string('noscript', 'quiz')));
