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
195f6720
Commit
195f6720
authored
Apr 27, 2005
by
Steven Wittens
Browse files
- Missing parameter for variable_get
parent
23957cdf
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/blogapi.module
View file @
195f6720
...
...
@@ -118,7 +118,7 @@ function blogapi_new_post($req_params) {
$edit
=
array
();
$edit
[
'type'
]
=
_blogapi_blogid
(
$params
[
0
]);
// get the node type defaults
$node_type_default
=
variable_get
(
'node_options_'
.
$edit
[
'type'
]);
$node_type_default
=
variable_get
(
'node_options_'
.
$edit
[
'type'
]
,
array
()
);
$edit
[
'uid'
]
=
$user
->
uid
;
$edit
[
'name'
]
=
$user
->
name
;
$edit
[
'promote'
]
=
$node_type_default
[
'promote'
];
...
...
modules/blogapi/blogapi.module
View file @
195f6720
...
...
@@ -118,7 +118,7 @@ function blogapi_new_post($req_params) {
$edit
=
array
();
$edit
[
'type'
]
=
_blogapi_blogid
(
$params
[
0
]);
// get the node type defaults
$node_type_default
=
variable_get
(
'node_options_'
.
$edit
[
'type'
]);
$node_type_default
=
variable_get
(
'node_options_'
.
$edit
[
'type'
]
,
array
()
);
$edit
[
'uid'
]
=
$user
->
uid
;
$edit
[
'name'
]
=
$user
->
name
;
$edit
[
'promote'
]
=
$node_type_default
[
'promote'
];
...
...
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