From fbbc5c010ad2477ebf61a2f1e4caa0b74d4e9931 Mon Sep 17 00:00:00 2001 From: ghost Date: Wed, 30 Aug 2023 16:07:46 +0300 Subject: [PATCH] make MAGNET_STOP_WORDS_SIMILAR case not sinsetive --- src/library/sphinx.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library/sphinx.php b/src/library/sphinx.php index b56eee0..12be426 100644 --- a/src/library/sphinx.php +++ b/src/library/sphinx.php @@ -75,7 +75,7 @@ class Sphinx { { if (mb_strlen($value) > 5) { - if (!in_array(mb_strtolower($value), $stopWords)) + if (!in_array(mb_strtolower($value), array_map('strtolower', $stopWords))) { $result[] = sprintf('@metaTitle "%s" | @dn "%s"', $value, $value); }