Commit 3e5d7498 authored by Dries's avatar Dries
Browse files

- Fixed problem with multiple node types. Patch by JonBob.

parent bfba3353
......@@ -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)));
......
......@@ -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)));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment