Commit 818d636e authored by Kjartan's avatar Kjartan

- Commiting patch #7577: comment.module clean up.

parent 7cd54567
......@@ -262,11 +262,11 @@ function blogapi_new_media_object($req_params) {
if (!$data) {
return blogapi_error(t('No file sent'));
}
if (!$file = file_save_data($data, $name)) {
return blogapi_error(t('Error storing file'));
}
// Return the successful result.
$result = new xmlrpcval(array('url' => new xmlrpcval(file_create_url($file), 'string')), 'struct');
return new xmlrpcresp($result);
......
......@@ -262,11 +262,11 @@ function blogapi_new_media_object($req_params) {
if (!$data) {
return blogapi_error(t('No file sent'));
}
if (!$file = file_save_data($data, $name)) {
return blogapi_error(t('Error storing file'));
}
// Return the successful result.
$result = new xmlrpcval(array('url' => new xmlrpcval(file_create_url($file), 'string')), 'struct');
return new xmlrpcresp($result);
......
This diff is collapsed.
This diff is collapsed.
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