Commit c6281c46 authored by Steven Wittens's avatar Steven Wittens

Profile.module: removing incorrect use of strtolower which messes up UTF-8 data.

parent 293c283c
...@@ -370,7 +370,7 @@ function profile_validate_profile($edit, $category) { ...@@ -370,7 +370,7 @@ function profile_validate_profile($edit, $category) {
function profile_categories() { function profile_categories() {
$result = db_query("SELECT DISTINCT(category) FROM {profile_fields}"); $result = db_query("SELECT DISTINCT(category) FROM {profile_fields}");
while ($category = db_fetch_object($result)) { while ($category = db_fetch_object($result)) {
$data[] = array('name' => drupal_specialchars(strtolower($category->category)), 'title' => strtolower($category->category), 'weight' => 3); $data[] = array('name' => drupal_specialchars($category->category), 'title' => $category->category, 'weight' => 3);
} }
return $data; return $data;
} }
......
...@@ -370,7 +370,7 @@ function profile_validate_profile($edit, $category) { ...@@ -370,7 +370,7 @@ function profile_validate_profile($edit, $category) {
function profile_categories() { function profile_categories() {
$result = db_query("SELECT DISTINCT(category) FROM {profile_fields}"); $result = db_query("SELECT DISTINCT(category) FROM {profile_fields}");
while ($category = db_fetch_object($result)) { while ($category = db_fetch_object($result)) {
$data[] = array('name' => drupal_specialchars(strtolower($category->category)), 'title' => strtolower($category->category), 'weight' => 3); $data[] = array('name' => drupal_specialchars($category->category), 'title' => $category->category, 'weight' => 3);
} }
return $data; return $data;
} }
......
Markdown is supported
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