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

This commit is contained in:
tjhunt 2006-10-05 15:58:08 +00:00
parent 446b52f908
commit ec467c6929
2 changed files with 2 additions and 1 deletions

View File

@ -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';

View File

@ -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 '<table id="layout-table"><tr>';