Skip to content

Commit

Permalink
PM-43048 Fix line lenghts
Browse files Browse the repository at this point in the history
  • Loading branch information
mst-kialo committed Oct 18, 2023
1 parent 3630ff5 commit 4bb8063
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
10 changes: 9 additions & 1 deletion backup/moodle2/backup_kialo_stepslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,15 @@ class backup_kialo_activity_structure_step extends backup_activity_structure_ste
protected function define_structure() {
// We just back up everything. See install.xml for fields that need to be backed up.
$kialo = new backup_nested_element('kialo', ['id'], [
'course', 'name', 'timecreated', 'timemodified', 'intro', 'introformat', 'discussion_title', 'deployment_id', 'discussion_url',
'course',
'name',
'timecreated',
'timemodified',
'intro',
'introformat',
'discussion_title',
'deployment_id',
'discussion_url',
]);
$kialo->set_source_table('kialo', ['id' => backup::VAR_ACTIVITYID]);

Expand Down
8 changes: 7 additions & 1 deletion view.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@
}

try {
$message = lti_flow::init_resource_link($course->id, $cm->id, $moduleinstance->deployment_id, $USER->id, $moduleinstance->discussion_url);
$message = lti_flow::init_resource_link(
$course->id,
$cm->id,
$moduleinstance->deployment_id,
$USER->id,
$moduleinstance->discussion_url
);

$output = $PAGE->get_renderer('mod_kialo');
echo $output->render(new loading_page(
Expand Down

0 comments on commit 4bb8063

Please sign in to comment.