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 7, 2024
1 parent 937a54f commit 3d5c0da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classes/text_filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,9 @@ 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 3d5c0da

Please sign in to comment.