From: tjhunt Date: Thu, 5 Oct 2006 15:58:08 +0000 (+0000) Subject: MDL-6837 - move warning about pupup blockers into the lang file. Merged from MOODLE_1... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ec467c69290c86be1eef668063d5e4f35f6d574b;p=moodle.git MDL-6837 - move warning about pupup blockers into the lang file. Merged from MOODLE_16_STABLE. --- diff --git a/lang/en_utf8/quiz.php b/lang/en_utf8/quiz.php index 72b1afc4fb..0f8a553d80 100644 --- a/lang/en_utf8/quiz.php +++ b/lang/en_utf8/quiz.php @@ -338,6 +338,7 @@ $string['penaltyfactor'] = 'Penalty factor'; $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'; diff --git a/mod/quiz/view.php b/mod/quiz/view.php index fbabffb680..ddda08f0d4 100644 --- a/mod/quiz/view.php +++ b/mod/quiz/view.php @@ -59,7 +59,7 @@ //only check pop ups if the user is not a teacher, and popup is set - $bodytags = (has_capability('mod/quiz:attempt', $context) && $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 = (has_capability('mod/quiz:attempt', $context) && $quiz->popup)?'onload="popupchecker(\'' . get_string('popupblockerwarning', 'quiz') . '\');"':''; $PAGE->print_header($course->shortname.': %fullname%','',$bodytags); echo '';