mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-78904 user: Remove non-existent require
* And enclose context parameter in an array.
This commit is contained in:
parent
e4919b0feb
commit
a5742d7845
1 changed files with 1 additions and 4 deletions
|
@ -55,14 +55,11 @@ $PAGE->set_heading($course->fullname);
|
||||||
|
|
||||||
echo $OUTPUT->header();
|
echo $OUTPUT->header();
|
||||||
|
|
||||||
$currenttab = 'repositories';
|
|
||||||
require('tabs.php');
|
|
||||||
|
|
||||||
echo $OUTPUT->heading($configstr);
|
echo $OUTPUT->heading($configstr);
|
||||||
echo $OUTPUT->box_start();
|
echo $OUTPUT->box_start();
|
||||||
|
|
||||||
$params = array();
|
$params = array();
|
||||||
$params['context'] = $coursecontext;
|
$params['context'] = [$coursecontext];
|
||||||
$params['currentcontext'] = $PAGE->context;
|
$params['currentcontext'] = $PAGE->context;
|
||||||
$params['userid'] = $USER->id;
|
$params['userid'] = $USER->id;
|
||||||
if (!$instances = repository::get_instances($params)) {
|
if (!$instances = repository::get_instances($params)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue