Skip to content

Commit

Permalink
Minor Style changes an changing the ci branch to test against main
Browse files Browse the repository at this point in the history
  • Loading branch information
NinaHerrmann committed Mar 19, 2024
1 parent a2416a1 commit 1d264d5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/moodle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on: [ push, pull_request ]

jobs:
call-moodle-ci-workflow:
uses: Opencast-Moodle/moodle-workflows-opencast/.github/workflows/moodle-ci.yml@master
uses: Opencast-Moodle/moodle-workflows-opencast/.github/workflows/moodle-ci.yml@update/m404
with:
requires-tool-plugin: true
requires-mod-plugin: true
Expand Down
8 changes: 4 additions & 4 deletions batchupload.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@

$customdata = [
'courseid' => $courseid, 'metadata_catalog' => $batchmetadatacatalog,
'eventdefaults' => $usereventdefaults, 'ocinstanceid' => $ocinstanceid
'eventdefaults' => $usereventdefaults, 'ocinstanceid' => $ocinstanceid,
];
if ($series) {
$customdata['series'] = $series;
Expand Down Expand Up @@ -257,13 +257,13 @@
}

$newfileitemid = file_get_unused_draft_itemid();
$newfilerecord = array(
$newfilerecord = [
'contextid' => $uploadedfile->get_contextid(),
'component' => $uploadedfile->get_component(),
'filearea' => $uploadedfile->get_filearea(),
'itemid' => $newfileitemid,
'timemodified' => time()
);
'timemodified' => time(),
];
$newfile = $fs->create_file_from_storedfile($newfilerecord, $uploadedfile);
// Delete the old job.
file_deletionmanager::fulldelete_file($uploadedfile);
Expand Down
2 changes: 1 addition & 1 deletion block_opencast.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public function get_content_for_output($output) {
'id' => $COURSE->id,
'bui_deleteid' => $this->instance->id,
'bui_confirm' => 1,
'sesskey' => sesskey()
'sesskey' => sesskey(),
]);
$this->page->requires->js_call_amd('block_opencast/block_delete_handler', 'init',
[$this->context->id, $deleteurl->out(false)]);
Expand Down
4 changes: 2 additions & 2 deletions db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
'contextlevel' => CONTEXT_COURSE,
'archetypes' => [
'manager' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW
'editingteacher' => CAP_ALLOW,
],
],
'block/opencast:manageseriesforcourse' => [
Expand All @@ -161,7 +161,7 @@
'contextlevel' => CONTEXT_COURSE,
'archetypes' => [
'manager' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW
'editingteacher' => CAP_ALLOW,
],
],
'block/opencast:deleteevent' => [
Expand Down

0 comments on commit 1d264d5

Please sign in to comment.