MDL-16166 centralised enabling of subsystems, fixed some warnings and general cleanup
This commit is contained in:
@@ -42,6 +42,10 @@
|
||||
$context = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
require_capability('moodle/notes:manage', $context);
|
||||
|
||||
if (empty($CFG->enablenotes)) {
|
||||
print_error('notesdisabled', 'notes');
|
||||
}
|
||||
|
||||
/// create form
|
||||
$noteform = new note_edit_form();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user