Skip to content
GitLab
Menu
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
302104af
Commit
302104af
authored
Dec 12, 2017
by
Damyon Wiese
Browse files
Merge branch 'MDL-60920-master' of
https://github.com/lucaboesch/moodle
parents
80b6f3b0
41d335f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
mod/quiz/index.php
View file @
302104af
...
...
@@ -43,20 +43,8 @@ $event->trigger();
// Print the header.
$strquizzes
=
get_string
(
"modulenameplural"
,
"quiz"
);
$streditquestions
=
''
;
$editqcontexts
=
new
question_edit_contexts
(
$coursecontext
);
if
(
$editqcontexts
->
have_one_edit_tab_cap
(
'questions'
))
{
$streditquestions
=
"<form target=
\"
_parent
\"
method=
\"
get
\"
action=
\"
$CFG->wwwroot
/question/edit.php
\"
>
<div>
<input type=
\"
hidden
\"
name=
\"
courseid
\"
value=
\"
$course->id
\"
/>
<input type=
\"
submit
\"
value=
\"
"
.
get_string
(
"editquestions"
,
"quiz"
)
.
"
\"
/>
</div>
</form>"
;
}
$PAGE
->
navbar
->
add
(
$strquizzes
);
$PAGE
->
set_title
(
$strquizzes
);
$PAGE
->
set_button
(
$streditquestions
);
$PAGE
->
set_heading
(
$course
->
fullname
);
echo
$OUTPUT
->
header
();
echo
$OUTPUT
->
heading
(
$strquizzes
,
2
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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