Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
a8b8f472
Commit
a8b8f472
authored
Aug 01, 2012
by
Dan Poltawski
Browse files
MDL-34599 mod_quiz: optional $thispage & $nextpage
The previous change making the params required was a regression.
parent
df0d0fde
Changes
1
Hide whitespace changes
Inline
Side-by-side
mod/quiz/processattempt.php
View file @
a8b8f472
...
...
@@ -38,8 +38,8 @@ $timenow = time();
// Get submitted parameters.
$attemptid
=
required_param
(
'attempt'
,
PARAM_INT
);
$thispage
=
required
_param
(
'thispage'
,
PARAM_INT
);
$nextpage
=
required
_param
(
'nextpage'
,
PARAM_INT
);
$thispage
=
optional
_param
(
'thispage'
,
0
,
PARAM_INT
);
$nextpage
=
optional
_param
(
'nextpage'
,
0
,
PARAM_INT
);
$next
=
optional_param
(
'next'
,
false
,
PARAM_BOOL
);
$finishattempt
=
optional_param
(
'finishattempt'
,
false
,
PARAM_BOOL
);
$timeup
=
optional_param
(
'timeup'
,
0
,
PARAM_BOOL
);
// True if form was submitted by timer.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment