diff --git a/2.4/blocks/aspirelists/classes/privacy/provider.php b/2.4/blocks/aspirelists/classes/privacy/provider.php new file mode 100644 index 0000000..04ed91f --- /dev/null +++ b/2.4/blocks/aspirelists/classes/privacy/provider.php @@ -0,0 +1,17 @@ +version = 201803081833; // YYYYMMDDHHMM (year, month, day, 24-hr time) +$plugin->version = 201805291000; // YYYYMMDDHHMM (year, month, day, 24-hr time) $plugin->requires = 2012120300; // YYYYMMDDHH (This is the release version for Moodle 2.4) -$plugin->component = 'block_aspirelists'; \ No newline at end of file +$plugin->component = 'block_aspirelists'; diff --git a/2.x-activity-module/mod/aspirelists/db/upgrade.php b/2.x-activity-module/mod/aspirelists/db/upgrade.php index 28f9a39..80d8a52 100644 --- a/2.x-activity-module/mod/aspirelists/db/upgrade.php +++ b/2.x-activity-module/mod/aspirelists/db/upgrade.php @@ -131,4 +131,8 @@ function xmldb_aspirelists_upgrade($oldversion) { upgrade_mod_savepoint(true, 2017070400, 'aspirelists'); } + if ($oldversion < 201805291000){ + upgrade_mod_savepoint(true, 201805291000, 'aspirelists'); + } + } \ No newline at end of file diff --git a/2.x-activity-module/mod/aspirelists/lang/en/aspirelists.php b/2.x-activity-module/mod/aspirelists/lang/en/aspirelists.php index 9e7fb48..c0afed8 100644 --- a/2.x-activity-module/mod/aspirelists/lang/en/aspirelists.php +++ b/2.x-activity-module/mod/aspirelists/lang/en/aspirelists.php @@ -3,6 +3,9 @@ // Released under the LGPL Licence - http://www.gnu.org/licenses/lgpl.html. Anyone is free to change or redistribute this code. $string['modulename'] = 'Course Resource List'; +$string['modulename_help'] = 'The resource list allows lists or sections of lists to be embedded within a Moodle course. Displaying lists in-line can be useful for including reading material alongside other course resources. As sections of lists can be displayed it is possible to break down resources and reading material on a per-week or per-topic basis. + +You may be asked to choose which resource list relates to this Moodle course.'; $string['pluginname'] = 'Course Resource List'; $string['eventAspireLaunch'] = 'Talis Aspire Launch Event'; diff --git a/2.x-activity-module/mod/aspirelists/launch.php b/2.x-activity-module/mod/aspirelists/launch.php index 4966bc7..983fd59 100644 --- a/2.x-activity-module/mod/aspirelists/launch.php +++ b/2.x-activity-module/mod/aspirelists/launch.php @@ -18,6 +18,11 @@ $course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST); $context = context_module::instance($cm->id); +if($CFG->version >= 2017111300) { + $PAGE->set_cm($cm, $course); // set up global $COURSE +} + +// Log the launch if($CFG->version < 2014051200) { add_to_log($course->id, "aspirelists", "launch", "launch.php?id=$cm->id", "$list->id"); } else { @@ -32,6 +37,7 @@ $event->trigger(); } +// Perform the launch $list->cmid = $cm->id; aspirelists_add_lti_properties($list); if($CFG->version >= 2015111600) { diff --git a/README.md b/README.md index c3061bd..32947b5 100644 --- a/README.md +++ b/README.md @@ -41,3 +41,15 @@ To determine what version of this block you are using, ## 1.x This directory contains a module which is no longer actively developed and was last tested for the 1.x versions of Moodle. + +# Contributing changes and reporting issues + +Without your feedback and input, these plugins would not be where they are today. If you have an idea for an improvement, or have made a change in a local copy of the plugin, then please do contribute. + +## Guidelines for contributing + +1. Raise an issue first — this means that a disucssion can be had about the change +1. Fork this repo +1. Make changes in a new branch. +1. Raise a Pull Request against this repo with those changes, and reference the issue from step 1 +1. Once a review of the changes has been completed, we'll merge the changes into the master branch.