diff options
Diffstat (limited to 'plugins/Referrers/SearchEngine.php')
-rw-r--r-- | plugins/Referrers/SearchEngine.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/plugins/Referrers/SearchEngine.php b/plugins/Referrers/SearchEngine.php index f77bd2ab8f..8b94d02855 100644 --- a/plugins/Referrers/SearchEngine.php +++ b/plugins/Referrers/SearchEngine.php @@ -320,7 +320,7 @@ class SearchEngine extends Singleton if (!empty($definitions['charsets'])) { $key = $this->convertCharset($key, $definitions['charsets']); } - $key = Common::mb_strtolower($key); + $key = mb_strtolower($key); } return array( @@ -379,13 +379,9 @@ class SearchEngine extends Singleton */ protected function convertCharset($string, $charsets) { - if (function_exists('iconv') - && !empty($charsets) - ) { + if (!empty($charsets)) { $charset = $charsets[0]; - if (count($charsets) > 1 - && function_exists('mb_detect_encoding') - ) { + if (count($charsets) > 1) { $charset = mb_detect_encoding($string, $charsets); if ($charset === false) { $charset = $charsets[0]; |