Skip to content

Commit

Permalink
Bugfix: GH-260 cfg wwwroot
Browse files Browse the repository at this point in the history
  • Loading branch information
WunderJacob committed Sep 18, 2024
1 parent a0a1baf commit 9e18b15
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ function mod_adele_cm_info_view(cm_info $cm) {
'learningpath' => $learningpathmod->learningpathid,
'userlist' => $learningpathmod->userlist,
'view' => "teacher",
'wwwroot' => $CFG->wwwroot,
'version' => $CFG->version,
]);
} else {
Expand All @@ -156,6 +157,7 @@ function mod_adele_cm_info_view(cm_info $cm) {
'learningpath' => $learningpathmod->learningpathid,
'userlist' => $learningpathmod->userlist,
'view' => "student",
'wwwroot' => $CFG->wwwroot,
'version' => $CFG->version,
]);
} else {
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@

$plugin->component = 'mod_adele';
$plugin->release = '0.1.0';
$plugin->version = 2024060300;
$plugin->version = 2024091800;
$plugin->requires = 2022112800;
$plugin->maturity = MATURITY_ALPHA;
$plugin->dependencies = [
'local_adele' => 2024060300,
'local_adele' => 2024091800,
];
2 changes: 2 additions & 0 deletions view.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
'learningpath' => $learningpath->learningpathid,
'userlist' => $learningpath->userlist,
'view' => "teacher",
'wwwroot' => $CFG->wwwroot,
'version' => $CFG->version,
]);
} else {
Expand All @@ -109,6 +110,7 @@
'learningpath' => $learningpath->learningpathid,
'userlist' => $learningpath->userlist,
'view' => "student",
'wwwroot' => $CFG->wwwroot,
'version' => $CFG->version,
]);
} else {
Expand Down

0 comments on commit 9e18b15

Please sign in to comment.