From 38ba2b239552a14918efa4ecf2f586afbccab75a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Tue, 6 Aug 2024 19:51:22 +0200 Subject: [PATCH] MDLSITE-6660 Fix case-sensitive substring search --- classes/output/translator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/output/translator.php b/classes/output/translator.php index b19d5b8..e82ca9a 100644 --- a/classes/output/translator.php +++ b/classes/output/translator.php @@ -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; }