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
77a0d99c
Commit
77a0d99c
authored
Dec 20, 2003
by
Kjartan
Browse files
- Fixed bug
#4722
: blogger.newPost not working. Patch by James Walker.
parent
c96a130e
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/blogapi.module
View file @
77a0d99c
...
...
@@ -73,6 +73,12 @@ function blogapi_get_user_info($req_params) {
function
blogapi_new_post
(
$req_params
)
{
$params
=
blogapi_convert
(
$req_params
);
// Remove unused appkey from bloggerAPI.
if
(
count
(
$params
)
==
6
)
{
$params
=
array_slice
(
$params
,
1
);
}
$user
=
blogapi_validate_user
(
$params
[
1
],
$params
[
2
]);
if
(
!
$user
->
uid
)
{
return
blogapi_error
(
$user
);
...
...
modules/blogapi/blogapi.module
View file @
77a0d99c
...
...
@@ -73,6 +73,12 @@ function blogapi_get_user_info($req_params) {
function
blogapi_new_post
(
$req_params
)
{
$params
=
blogapi_convert
(
$req_params
);
// Remove unused appkey from bloggerAPI.
if
(
count
(
$params
)
==
6
)
{
$params
=
array_slice
(
$params
,
1
);
}
$user
=
blogapi_validate_user
(
$params
[
1
],
$params
[
2
]);
if
(
!
$user
->
uid
)
{
return
blogapi_error
(
$user
);
...
...
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