upadted to 1.8
This commit is contained in:
15
includes/processor_transliteration.inc
Normal file
15
includes/processor_transliteration.inc
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Processor for making searches insensitive to accents and other non-ASCII characters.
|
||||
*/
|
||||
class SearchApiTransliteration extends SearchApiAbstractProcessor {
|
||||
|
||||
protected function process(&$value) {
|
||||
// We don't touch integers, NULL values or the like.
|
||||
if (is_string($value)) {
|
||||
$value = transliteration_get($value, '', language_default('language'));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user