OSDN Git Service

ADD/FIX/CHANGE/REMOVE: スキン・テンプレート表示処理の改良
[nucleus-jp/nucleus-next.git] / nucleus / convert / bloggercaif.php
index 39e3311..8293083 100644 (file)
@@ -220,7 +220,7 @@ while ($a_name = array_pop($authors)) {
                <?php                   $query =  'SELECT mname as text, mnumber as value FROM '.sql_table('member');
 
                        $template['name'] = 'memberid[' . $idx . ']';
-                       showlist($query,'select',$template);
+                       echo showlist($query,'select',$template);
                ?>
                        </td>
                        <td>
@@ -247,7 +247,7 @@ while ($a_name = array_pop($authors)) {
                        <?php                                   $query =  'SELECT bname as text, bnumber as value FROM '.sql_table('blog');
                                        $template['name'] = 'blogid';
                                        $template['selected'] = $CONF['DefaultBlog'];
-                                       showlist($query,'select',$template);
+                                       echo showlist($query,'select',$template);
                        ?>
                </div>
                <div>
@@ -258,7 +258,7 @@ while ($a_name = array_pop($authors)) {
                                <?php                                   $query =  'SELECT mname as text, mnumber as value FROM '.sql_table('member');
 
                                        $template['name'] = 'newowner';
-                                       showlist($query,'select',$template);
+                                       echo showlist($query,'select',$template);
                                ?>
                                </li>
                        </ul>
@@ -283,7 +283,7 @@ while ($a_name = array_pop($authors)) {
 
 
 function bc_doConversion() {
-       global $HTTP_POST_VARS;
+       global $HTTP_POST_VARS, $manager;
 
        // 1. get all data
        $authorcount = intval($HTTP_POST_VARS['authorcount']);
@@ -347,7 +347,7 @@ function bc_doConversion() {
        }
 
        // add authors to blog team
-       $b = new Blog($nucleus_blogid);
+       $b =& $manager->getBlog($nucleus_blogid);
        global $catid;
        $catid = $b->getDefaultCategory();