mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 20:53:53 +01:00
MDL-6837 - move warning about pupup blockers into the lang file. Merged from MOODLE_16_STABLE.
This commit is contained in:
parent
446b52f908
commit
ec467c6929
@ -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';
|
||||
|
@ -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>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user