Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
220
Merge Requests
220
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
eeae26b2
Commit
eeae26b2
authored
Feb 16, 2006
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#49132
by Tobias and Zen: fixed problem with profile fields being mangled.
parent
ae470d69
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
modules/profile.module
modules/profile.module
+1
-1
modules/profile/profile.module
modules/profile/profile.module
+1
-1
modules/user.module
modules/user.module
+4
-4
modules/user/user.module
modules/user/user.module
+4
-4
No files found.
modules/profile.module
View file @
eeae26b2
...
...
@@ -314,7 +314,7 @@ function profile_view_profile($user) {
while
(
$field
=
db_fetch_object
(
$result
))
{
if
(
$value
=
profile_view_field
(
$user
,
$field
))
{
$description
=
(
$field
->
visibility
==
PROFILE_PRIVATE
)
?
t
(
'The content of this field is private and only visible to yourself.'
)
:
''
;
$title
=
(
$field
->
type
!=
'checkbox'
)
?
check_plain
(
$field
->
title
)
:
''
;
$title
=
(
$field
->
type
!=
'checkbox'
)
?
check_plain
(
$field
->
title
)
:
NULL
;
$item
=
array
(
'title'
=>
$title
,
'value'
=>
$value
,
'class'
=>
$field
->
name
,
...
...
modules/profile/profile.module
View file @
eeae26b2
...
...
@@ -314,7 +314,7 @@ function profile_view_profile($user) {
while
(
$field
=
db_fetch_object
(
$result
))
{
if
(
$value
=
profile_view_field
(
$user
,
$field
))
{
$description
=
(
$field
->
visibility
==
PROFILE_PRIVATE
)
?
t
(
'The content of this field is private and only visible to yourself.'
)
:
''
;
$title
=
(
$field
->
type
!=
'checkbox'
)
?
check_plain
(
$field
->
title
)
:
''
;
$title
=
(
$field
->
type
!=
'checkbox'
)
?
check_plain
(
$field
->
title
)
:
NULL
;
$item
=
array
(
'title'
=>
$title
,
'value'
=>
$value
,
'class'
=>
$field
->
name
,
...
...
modules/user.module
View file @
eeae26b2
...
...
@@ -642,22 +642,22 @@ function theme_user_picture($account) {
* @ingroup themeable
*/
function
theme_user_profile
(
$account
,
$fields
)
{
$output
=
"<div class=
\"
profile
\"
>
\n
"
;
$output
=
'<div class="profile">'
;
$output
.
=
theme
(
'user_picture'
,
$account
);
foreach
(
$fields
as
$category
=>
$items
)
{
if
(
strlen
(
$category
)
>
0
)
{
$output
.
=
'<h2 class="title">'
.
$category
.
"</h2>
\n
"
;
$output
.
=
'<h2 class="title">'
.
$category
.
'</h2>'
;
}
$output
.
=
'<dl>'
;
foreach
(
$items
as
$item
)
{
if
(
isset
(
$item
[
'title'
]))
{
$output
.
=
'<dt class="'
.
$item
[
'class'
]
.
'">'
.
$item
[
'title'
]
.
'
:
</dt>'
;
$output
.
=
'<dt class="'
.
$item
[
'class'
]
.
'">'
.
$item
[
'title'
]
.
'</dt>'
;
}
$output
.
=
'<dd class="'
.
$item
[
'class'
]
.
'">'
.
$item
[
'value'
]
.
'</dd>'
;
}
$output
.
=
'</dl>'
;
}
$output
.
=
"</div>
\n
"
;
$output
.
=
'</div>'
;
return
$output
;
}
...
...
modules/user/user.module
View file @
eeae26b2
...
...
@@ -642,22 +642,22 @@ function theme_user_picture($account) {
* @ingroup themeable
*/
function
theme_user_profile
(
$account
,
$fields
)
{
$output
=
"<div class=
\"
profile
\"
>
\n
"
;
$output
=
'<div class="profile">'
;
$output
.
=
theme
(
'user_picture'
,
$account
);
foreach
(
$fields
as
$category
=>
$items
)
{
if
(
strlen
(
$category
)
>
0
)
{
$output
.
=
'<h2 class="title">'
.
$category
.
"</h2>
\n
"
;
$output
.
=
'<h2 class="title">'
.
$category
.
'</h2>'
;
}
$output
.
=
'<dl>'
;
foreach
(
$items
as
$item
)
{
if
(
isset
(
$item
[
'title'
]))
{
$output
.
=
'<dt class="'
.
$item
[
'class'
]
.
'">'
.
$item
[
'title'
]
.
'
:
</dt>'
;
$output
.
=
'<dt class="'
.
$item
[
'class'
]
.
'">'
.
$item
[
'title'
]
.
'</dt>'
;
}
$output
.
=
'<dd class="'
.
$item
[
'class'
]
.
'">'
.
$item
[
'value'
]
.
'</dd>'
;
}
$output
.
=
'</dl>'
;
}
$output
.
=
"</div>
\n
"
;
$output
.
=
'</div>'
;
return
$output
;
}
...
...
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