Skip to content

Commit

Permalink
External LTI only available in Moodle 4.3+.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-milette committed Sep 30, 2024
1 parent 0aeb61c commit 8c1f22b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ All notable changes to this project will be documented in this file.
- New {ifnotgrouping groupingid}...{/ifnotgrouping} tag.
- New {mygroupings} tag.
### Updated
- Link to External LTI now only available in Moodle 4.3+.
- Refactoring in preparations for Moodle 4.5.
- Added more documentation to README.md.
- Fixed links and updated table of contents in README.md.
Expand Down
5 changes: 4 additions & 1 deletion classes/text_filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,10 @@ private function generatortags(&$text) {
$menu .= '-{getstring:filter_filtercodes}unenrolme{/getstring}|{courseunenrolurl}' . PHP_EOL;
}
if ($this->hasminarchetype('editingteacher')) {
$menu .= '-{getstring:mod_lti}courseexternaltools{/getstring}|/mod/lti/coursetools.php?id={courseid}' . PHP_EOL;
if ($CFG->branch >= 403) {
$menu .= '-{getstring:mod_lti}courseexternaltools{/getstring}|/mod/lti/coursetools.php?id={courseid}'
. PHP_EOL;
}
if ($CFG->branch >= 311) {
$pluginame = '{getstring:tool_brickfield}pluginname{/getstring}';
$menu .= '-' . $pluginame . '|/admin/tool/brickfield/index.php?courseid={courseid}' . PHP_EOL;
Expand Down

0 comments on commit 8c1f22b

Please sign in to comment.