Merge branch 'MDL-78211-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE
This commit is contained in:
@@ -132,8 +132,9 @@ class bankcontent implements renderable, templatable {
|
||||
}
|
||||
$options = [];
|
||||
foreach ($this->allowedcategories as $allowedcategory) {
|
||||
$options[$allowedcategory->ctxid] = format_string($allowedcategory->name, true,
|
||||
context_coursecat::instance($allowedcategory->ctxinstance));
|
||||
$options[$allowedcategory->ctxid] = format_string($allowedcategory->name, true, [
|
||||
'context' => context_coursecat::instance($allowedcategory->ctxinstance),
|
||||
]);
|
||||
}
|
||||
if (!empty($options)) {
|
||||
$allowedcontexts['categories'] = [get_string('coursecategories') => $options];
|
||||
|
||||
Reference in New Issue
Block a user