Browse Source

make MAGNET_STOP_WORDS_SIMILAR case not sinsetive

main
ghost 1 year ago
parent
commit
fbbc5c010a
  1. 2
      src/library/sphinx.php

2
src/library/sphinx.php

@ -75,7 +75,7 @@ class Sphinx {
{ {
if (mb_strlen($value) > 5) 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); $result[] = sprintf('@metaTitle "%s" | @dn "%s"', $value, $value);
} }

Loading…
Cancel
Save