Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
c6281c46
Commit
c6281c46
authored
Sep 20, 2004
by
Steven Wittens
Browse files
Profile.module: removing incorrect use of strtolower which messes up
UTF-8
data.
parent
293c283c
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/profile.module
View file @
c6281c46
...
...
@@ -370,7 +370,7 @@ function profile_validate_profile($edit, $category) {
function
profile_categories
()
{
$result
=
db_query
(
"SELECT DISTINCT(category) FROM
{
profile_fields
}
"
);
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
;
}
...
...
modules/profile/profile.module
View file @
c6281c46
...
...
@@ -370,7 +370,7 @@ function profile_validate_profile($edit, $category) {
function
profile_categories
()
{
$result
=
db_query
(
"SELECT DISTINCT(category) FROM
{
profile_fields
}
"
);
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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment