# 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/view.php
--- moodle/mod/quiz/view.php Base (1.178)
+++ moodle/mod/quiz/view.php Locally Modified (Based On 1.178)
@@ -63,10 +63,8 @@
         $USER->editing = $edit;
     }
 
-/// Print the page header
-    $bodytags = '';
     if ($accessmanager->securewindow_required($canpreview)) {
-        $bodytags = 'onload="popupchecker(\'' . get_string('popupblockerwarning', 'quiz') . '\');"';
+        $PAGE->requires->js_function_call('popupchecker',array(get_string('popupblockerwarning', 'quiz')));
     }
     $PAGE->requires->yui_lib('event');
 
