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
148c23d3
Commit
148c23d3
authored
Dec 18, 2001
by
Dries
Browse files
- Fixed preview glitch in node_preview() as reported by ax.
parent
267044f0
Changes
2
Show whitespace changes
Inline
Side-by-side
modules/node.module
View file @
148c23d3
...
...
@@ -955,7 +955,7 @@ function node_preview($node) {
$node
->
uid
=
0
;
// anonymous user
}
}
else
if
(
$
edit
[
"
uid
"
]
)
{
else
if
(
$
node
->
uid
)
{
$user
=
user_load
(
array
(
"uid"
=>
$node
->
uid
));
$node
->
name
=
$user
->
name
;
}
...
...
modules/node/node.module
View file @
148c23d3
...
...
@@ -955,7 +955,7 @@ function node_preview($node) {
$node
->
uid
=
0
;
// anonymous user
}
}
else
if
(
$
edit
[
"
uid
"
]
)
{
else
if
(
$
node
->
uid
)
{
$user
=
user_load
(
array
(
"uid"
=>
$node
->
uid
));
$node
->
name
=
$user
->
name
;
}
...
...
Write
Preview
Supports
Markdown
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