Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
3e5d7498
Commit
3e5d7498
authored
Feb 06, 2004
by
Dries Buytaert
Browse files
- Fixed problem with multiple node types. Patch by JonBob.
parent
bfba3353
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/node.module
View file @
3e5d7498
...
...
@@ -1498,7 +1498,8 @@ function node_page() {
node_feed
();
return
;
case
'add'
:
print
theme
(
'page'
,
node_add
(
arg
(
2
)));
// When a module defines multiple node types, the URL is of the form 'foo/bar':
print
theme
(
'page'
,
node_add
(
arg
(
3
)
?
arg
(
2
)
.
"/"
.
arg
(
3
)
:
arg
(
2
)));
break
;
case
'edit'
:
print
theme
(
'page'
,
node_edit
(
arg
(
2
)));
...
...
modules/node/node.module
View file @
3e5d7498
...
...
@@ -1498,7 +1498,8 @@ function node_page() {
node_feed
();
return
;
case
'add'
:
print
theme
(
'page'
,
node_add
(
arg
(
2
)));
// When a module defines multiple node types, the URL is of the form 'foo/bar':
print
theme
(
'page'
,
node_add
(
arg
(
3
)
?
arg
(
2
)
.
"/"
.
arg
(
3
)
:
arg
(
2
)));
break
;
case
'edit'
:
print
theme
(
'page'
,
node_edit
(
arg
(
2
)));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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