Skip to content

Commit

Permalink
Fixed issue with %7Bcoursemoduleid%7D leaving % symbol behind.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-milette committed Oct 4, 2024
1 parent 8e2d137 commit 4390a54
Show file tree
Hide file tree
Showing 2 changed files with 2 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
- Fixed issue with %7Bcoursemoduleid%7D leaving % symbol behind.
- Fixed issue when {coursesummary} is used in a block.
- Link to External LTI now only available in Moodle 4.3+.
- Addressed compatibility issue with mod_hvp that prevents link to current theme settings from working.
Expand Down
2 changes: 1 addition & 1 deletion classes/text_filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -1714,7 +1714,7 @@ public function filter($text, array $options = []) {
// Description: Alias for {coursemoduleid}. Useful for encoded URLs.
// Parameters: None.
if (stripos($text, '%7Bcoursemoduleid%7D') !== false) {
$text = str_replace('7Bcoursemoduleid%7D', '{coursemoduleid}', $text);
$text = str_replace('%7Bcoursemoduleid%7D', '{coursemoduleid}', $text);
}

// Tag: {coursemoduleid}.
Expand Down

0 comments on commit 4390a54

Please sign in to comment.