summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Mateescu2012-06-01 08:23:48 (GMT)
committer Andrei Mateescu2012-06-01 08:23:48 (GMT)
commit5a23ce9bf36795df20975f6208f477b4bbe5aa27 (patch)
treedeb8b74c2a643ccfb14b27e30f3f8f01d941fd50
parent4795bd57eb486b3cc9c417e80d96d89331531669 (diff)
Follow-up for #1576986: Only use MySQL's 'BINARY' if files should be lower-cased.7.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 accf848..a355eac 100644
--- a/transliteration.admin.inc
+++ b/transliteration.admin.inc
@@ -137,7 +137,10 @@ function transliteration_file_query() {
switch (db_driver()) {
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;