Hi,

the bloggerimport module in current trunk fails with importing tags.
The applied patch on the one hand fixes the obvious code mistakes (-
>"double count" always resulted in only one iteration of the for loop;
-> wrong loop variable used in the statement inside the for loop), on
the other hand it skips the first extraced category, because at least
in my case (this is the xml blogger currently exports) $entry-
>category[0]['term'] was always an url (and always the same for all
extracted categories). So starting the iteration form 1 did the job
from me. But this might be a quick hack more or less...didn't digged
deeper...

Regards, Frank



--- bloggerimport.plugin.php.orig       2009-11-11 17:55:21.000000000 +0100
+++ bloggerimport.plugin.php    2011-12-12 00:17:15.000000000 +0100
@@ -243,8 +243,8 @@

                                $tags = array();
                                $category_count = count($entry->category);
-                               for ($j = 0; $j < count($category_count); $j++) 
{
-                                       $tags[] = 
(string)$entry->category[$i]['term'];
+                               for ($j = 1; $j < $category_count; $j++) {
+                                       $tags[] = 
(string)$entry->category[$j]['term'];
                                }

                                $post = new Post($t_post);

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev

Reply via email to