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
869d8c67
Commit
869d8c67
authored
Jul 31, 2003
by
Dries
Browse files
- Fixed broken links in the versioning system. Patch by Bart Jansens.
parent
24de26c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/node.module
View file @
869d8c67
...
...
@@ -585,7 +585,7 @@ function node_admin_edit($node) {
$output
.
=
"<table border=
\"
1
\"
cellpadding=
\"
2
\"
cellspacing=
\"
2
\"
>"
;
$output
.
=
" <tr><th>"
.
t
(
"older revisions"
)
.
"</th><th colspan=
\"
3
\"
>"
.
t
(
"operations"
)
.
"</th></tr>"
;
foreach
(
$node
->
revisions
as
$key
=>
$revision
)
{
$output
.
=
" <tr><td>"
.
t
(
"revision #%r revised by %u on %d"
,
array
(
"%r"
=>
$key
,
"%u"
=>
format_name
(
user_load
(
array
(
"uid"
=>
$revision
[
"uid"
]))),
"%d"
=>
format_date
(
$revision
[
"timestamp"
],
"small"
)))
.
(
$revision
[
"history"
]
?
"<br /><small>"
.
$revision
[
"history"
]
.
"</small>"
:
""
)
.
"</td><td>"
.
l
(
t
(
"view revision"
),
node_url
(
$node
->
nid
),
array
(),
"revision=
$key
"
)
.
"</td><td>"
.
l
(
t
(
"rollback revision"
),
"admin/node/rollback+revision/
$node->nid
/
$key
"
)
.
"</td><td>"
.
l
(
t
(
"delete revision"
),
"admin/node/delete+revision/
$node->nid
/
$key
"
)
.
"</td></tr>"
;
$output
.
=
" <tr><td>"
.
t
(
"revision #%r revised by %u on %d"
,
array
(
"%r"
=>
$key
,
"%u"
=>
format_name
(
user_load
(
array
(
"uid"
=>
$revision
[
"uid"
]))),
"%d"
=>
format_date
(
$revision
[
"timestamp"
],
"small"
)))
.
(
$revision
[
"history"
]
?
"<br /><small>"
.
$revision
[
"history"
]
.
"</small>"
:
""
)
.
"</td><td>"
.
l
(
t
(
"view revision"
),
node_url
(
$node
),
array
(),
"revision=
$key
"
)
.
"</td><td>"
.
l
(
t
(
"rollback revision"
),
"admin/node/rollback+revision/
$node->nid
/
$key
"
)
.
"</td><td>"
.
l
(
t
(
"delete revision"
),
"admin/node/delete+revision/
$node->nid
/
$key
"
)
.
"</td></tr>"
;
}
$output
.
=
"</table>"
;
}
...
...
modules/node/node.module
View file @
869d8c67
...
...
@@ -585,7 +585,7 @@ function node_admin_edit($node) {
$output
.
=
"<table border=
\"
1
\"
cellpadding=
\"
2
\"
cellspacing=
\"
2
\"
>"
;
$output
.
=
" <tr><th>"
.
t
(
"older revisions"
)
.
"</th><th colspan=
\"
3
\"
>"
.
t
(
"operations"
)
.
"</th></tr>"
;
foreach
(
$node
->
revisions
as
$key
=>
$revision
)
{
$output
.
=
" <tr><td>"
.
t
(
"revision #%r revised by %u on %d"
,
array
(
"%r"
=>
$key
,
"%u"
=>
format_name
(
user_load
(
array
(
"uid"
=>
$revision
[
"uid"
]))),
"%d"
=>
format_date
(
$revision
[
"timestamp"
],
"small"
)))
.
(
$revision
[
"history"
]
?
"<br /><small>"
.
$revision
[
"history"
]
.
"</small>"
:
""
)
.
"</td><td>"
.
l
(
t
(
"view revision"
),
node_url
(
$node
->
nid
),
array
(),
"revision=
$key
"
)
.
"</td><td>"
.
l
(
t
(
"rollback revision"
),
"admin/node/rollback+revision/
$node->nid
/
$key
"
)
.
"</td><td>"
.
l
(
t
(
"delete revision"
),
"admin/node/delete+revision/
$node->nid
/
$key
"
)
.
"</td></tr>"
;
$output
.
=
" <tr><td>"
.
t
(
"revision #%r revised by %u on %d"
,
array
(
"%r"
=>
$key
,
"%u"
=>
format_name
(
user_load
(
array
(
"uid"
=>
$revision
[
"uid"
]))),
"%d"
=>
format_date
(
$revision
[
"timestamp"
],
"small"
)))
.
(
$revision
[
"history"
]
?
"<br /><small>"
.
$revision
[
"history"
]
.
"</small>"
:
""
)
.
"</td><td>"
.
l
(
t
(
"view revision"
),
node_url
(
$node
),
array
(),
"revision=
$key
"
)
.
"</td><td>"
.
l
(
t
(
"rollback revision"
),
"admin/node/rollback+revision/
$node->nid
/
$key
"
)
.
"</td><td>"
.
l
(
t
(
"delete revision"
),
"admin/node/delete+revision/
$node->nid
/
$key
"
)
.
"</td></tr>"
;
}
$output
.
=
"</table>"
;
}
...
...
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