Merge branch 'master' of github.com:glls/cops
This commit is contained in:
commit
beae2d8bec
9
base.php
9
base.php
|
@ -332,19 +332,14 @@ function addURLParameter($urlParams, $paramName, $paramValue) {
|
||||||
function useNormAndUp () {
|
function useNormAndUp () {
|
||||||
global $config;
|
global $config;
|
||||||
return $config ['cops_normalized_search'] == "1";
|
return $config ['cops_normalized_search'] == "1";
|
||||||
// return extension_loaded('mbstring') &&
|
|
||||||
// extension_loaded('intl') &&
|
|
||||||
// class_exists("Normalizer", $autoload = false) &&
|
|
||||||
// $config ['cops_normalized_search'] == "1";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function normalizeUtf8String( $s)
|
function normalizeUtf8String( $s) {
|
||||||
{
|
|
||||||
include_once 'transliteration.php';
|
include_once 'transliteration.php';
|
||||||
return _transliteration_process($s);
|
return _transliteration_process($s);
|
||||||
}
|
}
|
||||||
|
|
||||||
function normAndUp ($s) {
|
function normAndUp ($s) {
|
||||||
return mb_strtoupper (normalizeUtf8String($s), 'UTF-8');
|
return mb_strtoupper (normalizeUtf8String($s), 'UTF-8');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue