diff --git a/CHANGELOG.md b/CHANGELOG.md index 781eca2..b0ba323 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/classes/text_filter.php b/classes/text_filter.php index f6ed585..90ccf2b 100644 --- a/classes/text_filter.php +++ b/classes/text_filter.php @@ -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;