Commit 77a0d99c authored by Kjartan's avatar Kjartan

- Fixed bug #4722: blogger.newPost not working. Patch by James Walker.

parent c96a130e
......@@ -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);
......
......@@ -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);
......
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