Skip to content

Commit

Permalink
2022070700 release code (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalmsten-panopto authored Jul 8, 2022
1 parent adac105 commit 9a859fc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lang/en/block_panopto.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
$string['block_panopto_auto_add_block_to_new_courses_desc'] = "When selected this will automatically insert a Panopto block into all new Moodle course pages.";
$string['block_panopto_auto_provision'] = 'Automatically provision courses';
$string['block_panopto_auto_insert_lti_link_to_new_courses'] = 'Automatically create an LTI tool link for new courses';
$string['block_panopto_auto_insert_lti_link_to_new_courses_desc'] = "When selected this will automatically insert a folder view course tool link to your automatic operation Panopto server into the first available section of your Moodle course page.";
$string['block_panopto_auto_insert_lti_link_to_new_courses_desc'] = "When selected this will automatically insert a folder view course tool link to your automatic operation Panopto server into the first available section of your Moodle course page. Note: This feature requires that you add the following custom parameter to the Pre-configured LTI tool you wish to be embedded into the course: panopto_course_embed_tool=true";
$string['block_panopto_auto_provision'] = 'Automatically provision courses';
$string['block_panopto_auto_provision_desc'] = 'This option can be set to automatically provision a Panopto course folder when a course is created. This option can also be set to automatically provision a course when the Panopto block is first viewed on it.';
$string['block_panopto_auto_sync_imports'] = 'Automatically Grant Permissions when Importing a Course';
Expand Down Expand Up @@ -161,7 +161,7 @@
$string['copy_api_error'] = 'Error importing course with Id {$a->importedcourseid}. Please see the Panopto PHP error logs for more details.';
$string['copy_api_error_auth'] = 'Error getting authorized with the panopto server {$a}.';
$string['copy_api_error_response'] = 'Failed copy response: {$a}';
$string['copy_course_init'] = 'Course copy has initialized, queueing job to copy content from Panopto folder mapped to Moodle course with Id {$a->SourceCourseContexts[0]} to a Panopto folder mapped to the Moodle course with Id {$a->TargetCourseContext}';
$string['copy_course_init'] = 'Course copy has initialized, queueing job to copy content from Panopto folder mapped to Moodle course with Id {$a->SourceCourseContext} to a Panopto folder mapped to the Moodle course with Id {$a->TargetCourseContext}';
$string['course'] = 'Course';
$string['course_already_provisioned'] = 'This course has already been provisioned to folder with a public Id of: {$a}.';
$string['course_has_invalid_panopto_data'] = 'The target Moodle course is no associated with valid Panopto folder data.';
Expand All @@ -175,7 +175,7 @@
$string['download_recorder'] = 'Download recorder';
$string['ensure_category_branch_failed'] = 'Call to ensure category branch did not succeed, please see Panopto log for more details.';
$string['ensure_category_branch_start'] = 'Beginning to ensure category branch for leaf category: {$a->categoryname} on Panopto server {$a->targetserver}.';
$string['ensure_category_branch_success'] = 'Categrory branch ensured with the following structure: \n {$a}';
$string['ensure_category_branch_success'] = 'Category branch ensured with the following structure: \n {$a}';
$string['error_invalid_category_information'] = 'The target category did not contain valid information.';
$string['error_no_admin_account_found'] = 'Error: No admin account was found';
$string['error_retrieving'] = 'Error retrieving Panopto course folder. Please check the PHP error_log for more details.';
Expand Down
7 changes: 6 additions & 1 deletion lib/panopto_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,12 @@ public function copy_panopto_content($originalcourseid) {
$coursecopytask->SourceCourseContexts = array($originalcourseid);
$coursecopytask->TargetCourseContext = $this->moodlecourseid;

self::print_log_verbose(get_string('copy_course_init', 'block_panopto', $coursecopytask));
// The api call takes an array but moodle logging can't handle this well so an extra variable is needed for logging
$coursecopylogdata = new stdClass;
$coursecopylogdata->SourceCourseContext = $originalcourseid;
$coursecopylogdata->TargetCourseContext = $this->moodlecourseid;

self::print_log_verbose(get_string('copy_course_init', 'block_panopto', $coursecopylogdata));

$this->sync_external_user($USER->id);

Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

// Plugin version should normally be the same as the internal version.
// If an admin wants to install with an older version number, however, set that here.
$plugin->version = 2022022300;
$plugin->version = 2022070700;

// Requires this Moodle version - 2.7.
$plugin->requires = 2014051200;
Expand Down

0 comments on commit 9a859fc

Please sign in to comment.