Skip to content
Snippets Groups Projects
Commit 9ae36834 authored by Demian Katz's avatar Demian Katz
Browse files

Merge branch 'release-3.0'

parents 3c9ae41d 0bc054bc
No related merge requests found
...@@ -366,7 +366,9 @@ class VuFind ...@@ -366,7 +366,9 @@ class VuFind
{ {
static $articles = ['a', 'an', 'the']; static $articles = ['a', 'an', 'the'];
$text = strtolower(trim($in)); $text = is_callable('mb_strtolower')
? mb_strtolower(trim($in), 'UTF-8')
: strtolower(trim($in));
foreach ($articles as $a) { foreach ($articles as $a) {
if (substr($text, 0, strlen($a) + 1) == ($a . ' ')) { if (substr($text, 0, strlen($a) + 1) == ($a . ' ')) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment