Permalink
Browse files

MDL-6837 - move warning about pupup blockers into the lang file.

  • Loading branch information...
tjhunt
tjhunt committed Oct 5, 2006
1 parent 0a60ef6 commit 98632cd3c860cb42845c9ee7d33636b5bffc6145
Showing with 2 additions and 1 deletion.
  1. +1 −0 lang/en_utf8/quiz.php
  2. +1 −1 mod/quiz/view.php
View
@@ -324,6 +324,7 @@
$string['penaltyscheme'] = 'Apply penalties';
$string['percentcorrect'] = 'Percent Correct';
$string['popup'] = 'Show quiz in a "secure" window';
+$string['popupblockerwarning'] = 'This section of the test is in secure mode, this means that you need to take the quiz in a secure window. Please turn off your popup blocker. Thank you.';
$string['popupnotice'] = 'Students will see this quiz in a secure window';
$string['preview'] = 'Preview';
$string['previewquestion'] = 'Preview question';
View
@@ -62,7 +62,7 @@
//only check pop ups if the user is not a teacher, and popup is set
- $bodytags = (isteacher($course->id) or !$quiz->popup)?'':'onload="popupchecker(\'This section of the test is in secure mode, this means that you need to take the quiz in a secure window. Please turn off your popup blocker. Thank you.\');"';
+ $bodytags = (isteacher($course->id) or !$quiz->popup)?'':'onload="popupchecker(\'' . get_string('popupblockerwarning', 'quiz') . '\');"';
$PAGE->print_header($course->shortname.': %fullname%','',$bodytags);
echo '<table id="layout-table"><tr>';

0 comments on commit 98632cd

Please sign in to comment.