Skip to content

Commit

Permalink
MDLSITE-6660 Fix case-sensitive substring search
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Aug 6, 2024
1 parent 5f93926 commit 38ba2b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/output/translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ public function __construct(\local_amos\output\filter $filter, object $user) {

} else {
if ($searcheng && $searchtra) {
if (!strstr($string->original, $substring) && !stristr($string->translation, $substring)) {
if (!strstr($string->original, $substring) && !strstr($string->translation, $substring)) {
continue;
}

Expand Down

0 comments on commit 38ba2b2

Please sign in to comment.