summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-03-26 06:30:06 +0000
committerDries Buytaert <dries@buytaert.net>2007-03-26 06:30:06 +0000
commitf626b5658de6005002d3465ed661e73d9c275f37 (patch)
treeac3ff814598011cb0596c2ed201d7559a693c1a7
parent7e653ce2d4ec7e35b502cc1c616dcfb623dc1b80 (diff)
downloadbrdo-f626b5658de6005002d3465ed661e73d9c275f37.tar.gz
brdo-f626b5658de6005002d3465ed661e73d9c275f37.tar.bz2
- Patch #107450 by webchick and fajerstarter: code clean-up of blogapi.module.
-rw-r--r--modules/blogapi/blogapi.module10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module
index e78c30b2f..d17825498 100644
--- a/modules/blogapi/blogapi.module
+++ b/modules/blogapi/blogapi.module
@@ -327,7 +327,7 @@ function blogapi_blogger_get_recent_posts($appkey, $blogid, $username, $password
else {
$result = db_query_range("SELECT n.nid, n.title, n.created, u.name FROM {node} n, {users} u WHERE n.uid = u.uid AND n.type = '%s' AND n.uid = %d ORDER BY n.created DESC", $type, $user->uid, 0, $number_of_posts);
}
- $blogs = array ();
+ $blogs = array();
while ($blog = db_fetch_object($result)) {
$blogs[] = _blogapi_get_post($blog, $bodies);
}
@@ -383,7 +383,7 @@ function blogapi_metaweblog_get_category_list($blogid, $username, $password) {
foreach ($terms as $term) {
$term_name = $term->name;
foreach (module_invoke('taxonomy', 'get_parents', $term->tid, 'tid') as $parent) {
- $term_name = $parent->name . '/' . $term_name;
+ $term_name = $parent->name .'/'. $term_name;
}
$categories[] = array('categoryName' => $term_name, 'categoryId' => $term->tid);
}
@@ -421,7 +421,7 @@ function blogapi_mt_get_post_categories($postid, $username, $password) {
foreach ($terms as $term) {
$term_name = $term->name;
foreach (module_invoke('taxonomy', 'get_parents', $term->tid, 'tid') as $parent) {
- $term_name = $parent->name . '/' . $term_name;
+ $term_name = $parent->name .'/'. $term_name;
}
$categories[] = array('categoryName' => $term_name, 'categoryId' => $term->tid, 'isPrimary' => TRUE);
}
@@ -634,7 +634,7 @@ function _blogapi_mt_extra(&$node, $struct) {
$node->body = $struct['mt_excerpt'] .'<!--break-->'.$node->body;
}
if ($struct['mt_text_more']) {
- $node->body = $node->body . '<!--extended-->' . $struct['mt_text_more'];
+ $node->body = $node->body .'<!--extended-->'. $struct['mt_text_more'];
}
// mt_convert_breaks
@@ -653,7 +653,7 @@ function _blogapi_mt_extra(&$node, $struct) {
}
function _blogapi_get_post($node, $bodies = TRUE) {
- $xmlrpcval = array (
+ $xmlrpcval = array(
'userid' => $node->name,
'dateCreated' => xmlrpc_date($node->created),
'title' => $node->title,