summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Mateescu2012-06-01 08:23:48 (GMT)
committer Andrei Mateescu2012-06-01 08:26:51 (GMT)
commit19fb560804c0259db42cc2beb48d4c62b0244c2b (patch)
treedebde8bacac516b920d7c2beb1f50bc0e184ac81
parent3616c908ed246a988df4a1119325d2dbf2542d21 (diff)
Follow-up for #1576986: Only use MySQL's 'BINARY' if files should be lower-cased.6.x-3.1
-rw-r--r--transliteration.admin.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/transliteration.admin.inc b/transliteration.admin.inc
index ccb9fb3..f5d97b2 100644
--- a/transliteration.admin.inc
+++ b/transliteration.admin.inc
@@ -115,7 +115,10 @@ function transliteration_file_query($count = FALSE) {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
- $operator = 'NOT REGEXP BINARY';
+ $operator = 'NOT REGEXP';
+ if (variable_get('transliteration_file_lowercase', TRUE)) {
+ $operator .= ' BINARY';
+ }
$regex = '/[a-z0-9_.-]+$';
break;