Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quiz-3157376
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
quiz-3157376
Commits
43b2be9e
Commit
43b2be9e
authored
14 years ago
by
falcon
Browse files
Options
Downloads
Patches
Plain Diff
#824762
by fuzzy76, pebosi: Fixed: E_ALL Compliance
parent
bb990d60
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
question_types/quiz_question/quiz_question.module
+1
-1
1 addition, 1 deletion
question_types/quiz_question/quiz_question.module
quiz.module
+4
-1
4 additions, 1 deletion
quiz.module
with
5 additions
and
2 deletions
question_types/quiz_question/quiz_question.module
+
1
−
1
View file @
43b2be9e
...
...
@@ -11,7 +11,7 @@
* The system remembers what quizzes a user has been involved in lately. This constant determines
* how many quizzes the system will remember for each user
*/
define
(
QUIZ_QUESTION_NUM_LATEST
,
10
);
define
(
'
QUIZ_QUESTION_NUM_LATEST
'
,
10
);
/**
* Implementation of hook_help().
...
...
This diff is collapsed.
Click to expand it.
quiz.module
+
4
−
1
View file @
43b2be9e
...
...
@@ -1245,7 +1245,7 @@ function quiz_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
break
;
}
}
if
(
$node
->
is_quiz_question
)
{
if
(
isset
(
$node
->
is_quiz_question
)
)
{
if
(
variable_get
(
'quiz_auto_revisioning'
,
1
))
{
$node
->
revision
=
(
quiz_question_has_been_answered
(
$node
))
?
1
:
0
;
}
...
...
@@ -1515,6 +1515,9 @@ function quiz_take_quiz($quiz) {
return
array
(
'body'
=>
array
(
'#value'
=>
t
(
'This quiz is closed'
)));
}
}
$q_passed_validation
=
FALSE
;
if
(
quiz_availability
(
$quiz
)
!==
TRUE
)
{
drupal_set_message
(
t
(
'This quiz is not available anymore.'
),
'error'
);
return
array
(
'body'
=>
array
(
'#value'
=>
t
(
'This quiz is closed'
)));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment