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
8ffc94ff
Commit
8ffc94ff
authored
Oct 09, 2015
by
Damyon Wiese
Browse files
MDL-51686 assign: Apply admin default for comment inline
parent
6d8dbfee
Changes
1
Hide whitespace changes
Inline
Side-by-side
mod/assign/feedback/comments/locallib.php
View file @
8ffc94ff
...
...
@@ -212,6 +212,10 @@ class assign_feedback_comments extends assign_feedback_plugin {
*/
public
function
get_settings
(
MoodleQuickForm
$mform
)
{
$default
=
$this
->
get_config
(
'commentinline'
);
if
(
$default
===
false
)
{
// Apply the admin default if we don't have a value yet.
$default
=
get_config
(
'assignfeedback_comments'
,
'inline'
);
}
$mform
->
addElement
(
'selectyesno'
,
'assignfeedback_comments_commentinline'
,
get_string
(
'commentinline'
,
'assignfeedback_comments'
));
...
...
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