OSDN Git Service

MERGE: リビジョン1860。Blogオブジェクトの作成にManagerクラスによるキャッシュ機構を利用
[nucleus-jp/nucleus-next.git] / nucleus / convert / bloggercaif.php
index 39e3311..72c70bf 100644 (file)
@@ -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();