Skip to content

Commit

Permalink
Change to patched line by OpenLMS (#47)
Browse files Browse the repository at this point in the history
* Fixes #38

* Bump version

* Make sure we reference the right class
  • Loading branch information
timhodson authored Oct 3, 2019
1 parent d074c4e commit 3fcd787
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,8 @@ function xmldb_aspirelists_upgrade($oldversion) {
if ($oldversion < 201805291000){
upgrade_mod_savepoint(true, 201805291000, 'aspirelists');
}

if ($oldversion < 201910031000){
upgrade_mod_savepoint(true, 201910031000, 'aspirelists');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
if($CFG->version < 2014051200) {
add_to_log($course->id, "aspirelists", "launch", "launch.php?id=$cm->id", "$list->id");
} else {
$event = \aspirelists\event\aspire_lists_launch::create(
$event = \mod_aspirelists\event\aspire_lists_launch::create(
array(
'objectid' => $cm->instance,
'context' => $context,
Expand Down
4 changes: 2 additions & 2 deletions moodle-activity-module-lti-wrapper/mod/aspirelists/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function aspirelists_cm_info_view(cm_info $cm) {
global $CFG,$PAGE;
if ($cm->uservisible && $cm->customdata) {
// Restore folder object from customdata.
// Note the field 'customdata' is not empty IF AND ONLY IF we display contens inline.
// Note the field 'customdata' is not empty IF AND ONLY IF we display contents inline.
// Otherwise the content is default.
$aspirelist = $cm->customdata;
$aspirelist->id = (int)$cm->instance;
Expand All @@ -194,7 +194,7 @@ function aspirelists_cm_info_view(cm_info $cm) {
$aspirelist->showdescription = $cm->showdescription;
// display reading list
$renderer = $PAGE->get_renderer('mod_aspirelists');
$cm->set_content($renderer->display_aspirelists($aspirelist));
$cm->set_content($renderer->display_aspirelists($aspirelist), true);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
$plugin = new stdClass();
}

$plugin->version = 201805291000; // Version for this plugin - based on the date and then an increment number
$plugin->version = 201910031000; // Version for this plugin - based on the date and then an increment number
$plugin->requires = 2012062507; // See http://docs.moodle.org/dev/Moodle_Versions
$plugin->cron = 0;
$plugin->component = 'mod_aspirelists';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
$completion = new completion_info($course);
$completion->set_module_viewed($cm);

$event = \aspirelists\event\course_module_viewed::create(
$event = \mod_aspirelists\event\course_module_viewed::create(
array(
'objectid' => $PAGE->cm->instance,
'context' => $context,
Expand Down

0 comments on commit 3fcd787

Please sign in to comment.