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 40287f7
Showing 1 changed file with 4 additions and 1 deletion.
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 40287f7

Please sign in to comment.