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
46388c9c
Commit
46388c9c
authored
Feb 15, 2011
by
Eloy Lafuente
Browse files
Merge branch 'MDL-26369' of
git://github.com/timhunt/moodle
parents
fe1776b9
2e5ce83f
Changes
1
Hide whitespace changes
Inline
Side-by-side
mod/quiz/locallib.php
View file @
46388c9c
...
...
@@ -916,7 +916,8 @@ function quiz_get_reviewoptions($quiz, $attempt, $context) {
}
// Show a link to the comment box only for closed attempts
if
(
$attempt
->
timefinish
&&
has_capability
(
'mod/quiz:grade'
,
$context
))
{
if
(
!
empty
(
$attempt
->
id
)
&&
$attempt
->
timefinish
&&
has_capability
(
'mod/quiz:grade'
,
$context
))
{
$options
->
questioncommentlink
=
new
moodle_url
(
'/mod/quiz/comment.php'
,
array
(
'attempt'
=>
$attempt
->
id
));
}
...
...
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