X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=nucleus%2Fconvert%2Flivejournal.php;h=735c988cdf747710dbf0a19009241a9c633eb788;hb=b82168398ee0160603b015a4930998f6e656c098;hp=f46788e9c35f7751dd2a35b84b0c283f9952b1e3;hpb=0a44f76e2bdc50fe718a02b053dd89de129ea929;p=nucleus-jp%2Fnucleus-next.git diff --git a/nucleus/convert/livejournal.php b/nucleus/convert/livejournal.php index f46788e..735c988 100644 --- a/nucleus/convert/livejournal.php +++ b/nucleus/convert/livejournal.php @@ -149,7 +149,7 @@ function bc_assignMembers() { default - @@ -187,7 +187,7 @@ function bc_assignMembers() { . " FROM ".sql_table('blog'); $template['name'] = 'blogid'; $template['selected'] = $CONF['DefaultBlog']; - showlist($query,'select',$template); + echo showlist($query,'select',$template); ?>
@@ -200,7 +200,7 @@ function bc_assignMembers() { . " FROM ".sql_table('member'); $template['name'] = 'newowner'; - showlist($query,'select',$template); + echo showlist($query,'select',$template); ?> @@ -226,7 +226,7 @@ function bc_assignMembers() { function bc_doConversion() { - global $HTTP_POST_VARS; + global $HTTP_POST_VARS, $manager; // 1. get all data $authorcount = intval($HTTP_POST_VARS['authorcount']); @@ -278,9 +278,9 @@ function bc_doConversion() { if ($createnew == 1) { // choose unique name $shortname = 'blogger'; - if (BLOG::exists($shortname)) { + if (Blog::exists($shortname)) { $idx = 1; - while (BLOG::exists($shortname . $idx)) + while (Blog::exists($shortname . $idx)) $idx++; $shortname = $shortname . $idx; } @@ -290,7 +290,7 @@ function bc_doConversion() { } // add authors to blog team - $b = new BLOG($nucleus_blogid); + $b =& $manager->getBlog($nucleus_blogid); global $catid; $catid = $b->getDefaultCategory(); @@ -327,7 +327,7 @@ function bc_convertOneItem($row, $memberid, $nucleus_blogid) { $timestamp = date("Y-m-d H:i:s",bc_transformDate($row['eventtime'])); echo "
";
-	echo "entry:" .  ENTITY::hsc(substr($row['event'],0,20)) . "...(time: " . $timestamp . ") \n";
+	echo "entry:" .  Entity::hsc(substr($row['event'],0,20)) . "...(time: " . $timestamp . ") \n";
 	echo "author: " . $row['author'] ;
 	echo " (nucleus-id: " . $nucl_id . ")";
 	echo "
";