Skip to content

Commit

Permalink
Improvement: String fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WunderJacob committed Aug 12, 2024
1 parent 0882be3 commit d967121
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions classes/observer.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public static function user_enrolment_created($data) {
if (isset($adelelp->participantslist) && $adelelp->participantslist == '1') {
// Subscribe user to learning path.
$learningpath = learning_paths::get_learning_path_by_id($adelelp->learningpathid);
$coursecontext = context_course::instance($data->courseid);
enrollment::subscribe_user_to_learning_path($learningpath, $data, $coursecontext->instanceid);
}
}
Expand Down
2 changes: 1 addition & 1 deletion lang/en/adele.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
$string['modulename'] = 'Learning path';
$string['adelename'] = 'Learning path';
$string['adelename_help'] = 'Help for Learning path';
$string['adelefieldset'] = 'Learning path Fieldset';
$string['adelefieldset'] = 'Learning path Settings';
$string['adelesettings'] = 'Learning path Settings';
$string['pluginadministration'] = 'Learning path Plugin Administration';
$string['adele:addinstance'] = 'Add Learning path Instance';
Expand Down
2 changes: 2 additions & 0 deletions lib.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ function mod_adele_cm_info_view(cm_info $cm) {
[
'userid' => $USER->id,
'contextid' => $modulecontext->id,
'quizsetting' => get_config('local_adele', 'quizsettings'),
'learningpath' => $learningpathmod->learningpathid,
'userlist' => $learningpathmod->userlist,
'view' => "teacher",
Expand All @@ -151,6 +152,7 @@ function mod_adele_cm_info_view(cm_info $cm) {
[
'userid' => $USER->id,
'contextid' => $modulecontext->id,
'quizsetting' => get_config('local_adele', 'quizsettings'),
'learningpath' => $learningpathmod->learningpathid,
'userlist' => $learningpathmod->userlist,
'view' => "student",
Expand Down
Empty file modified pix/monologo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified version.php
100644 → 100755
Empty file.
2 changes: 2 additions & 0 deletions view.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
[
'userid' => $USER->id,
'contextid' => $modulecontext->id,
'quizsetting' => get_config('local_adele', 'quizsettings'),
'learningpath' => $learningpath->learningpathid,
'userlist' => $learningpath->userlist,
'view' => "teacher",
Expand All @@ -104,6 +105,7 @@
[
'userid' => $USER->id,
'contextid' => $modulecontext->id,
'quizsetting' => get_config('local_adele', 'quizsettings'),
'learningpath' => $learningpath->learningpathid,
'userlist' => $learningpath->userlist,
'view' => "student",
Expand Down

0 comments on commit d967121

Please sign in to comment.