diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-09-15 09:28:50 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-09-15 09:28:50 +0000 |
commit | e7ac5c58fd101d0de71a1397dd5b33f1b62c5fc7 (patch) | |
tree | 93e4aa08fda69ea8bb2ad31c9af38124c2668a2e /modules/blogapi/blogapi.module | |
parent | 1806af909cc912e3ae688577b52a4edbcaf25678 (diff) | |
download | brdo-e7ac5c58fd101d0de71a1397dd5b33f1b62c5fc7.tar.gz brdo-e7ac5c58fd101d0de71a1397dd5b33f1b62c5fc7.tar.bz2 |
#308434 by drewish, dopry, quicksketch, aaron, jhedstrom, and friends: Massive file.inc cleanup aaaaaand... tests! Yay! :D
Diffstat (limited to 'modules/blogapi/blogapi.module')
-rw-r--r-- | modules/blogapi/blogapi.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module index e14c1e689..70938c0f1 100644 --- a/modules/blogapi/blogapi.module +++ b/modules/blogapi/blogapi.module @@ -385,12 +385,12 @@ function blogapi_metaweblog_new_media_object($blogid, $username, $password, $fil return blogapi_error(t('No file sent.')); } - if (!$file = file_save_data($data, $name)) { + if (!$filepath = file_save_data($data, $name)) { return blogapi_error(t('Error storing file.')); } // Return the successful result. - return array('url' => file_create_url($file), 'struct'); + return array('url' => file_create_url($filepath), 'struct'); } /** * Blogging API callback. Returns a list of the taxonomy terms that can be |