Use correct variable name in isLowValueWord

This commit is contained in:
Pontus Horn
2019-11-11 17:40:52 +01:00
committed by GitHub
parent 4476f85886
commit b539f8e359

View File

@@ -170,7 +170,7 @@ class PicoSearch extends AbstractPicoPlugin
}
public function isLowValueWord($word) {
return in_array(mb_strtolower($searchTerm), $this->getPluginConfig('low_value_words') ?: []);
return in_array(mb_strtolower($word), $this->getPluginConfig('low_value_words') ?: []);
}
public function onPageRendering(&$twig, &$twigVariables, &$templateName) {