mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 10:56:56 +02:00
MDL-34463 - lib - Alteration of the get_context_instance function to utilize the new function context_XXXX::instance().
This commit is contained in:
parent
3294034b80
commit
d40604724b
61 changed files with 95 additions and 100 deletions
|
@ -119,7 +119,7 @@ class grade_export_form extends moodleform {
|
|||
|
||||
if ($grade_items = $gseq->items) {
|
||||
$needs_multiselect = false;
|
||||
$canviewhidden = has_capability('moodle/grade:viewhidden', get_context_instance(CONTEXT_COURSE, $COURSE->id));
|
||||
$canviewhidden = has_capability('moodle/grade:viewhidden', context_course::instance($COURSE->id));
|
||||
|
||||
foreach ($grade_items as $grade_item) {
|
||||
// Is the grade_item hidden? If so, can the user see hidden grade_items?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue