OSDN Git Service

MERGE: リビジョン1860。Blogオブジェクトの作成にManagerクラスによるキャッシュ機構を利用
[nucleus-jp/nucleus-next.git] / nucleus / convert / greymatter.php
index 88eb146..2221583 100644 (file)
@@ -266,7 +266,7 @@ fclose($filehandle);
 }
 
 function gmc_doConversion() {
-       global $HTTP_POST_VARS;
+       global $HTTP_POST_VARS, $manager;
 
        // 1. get all data
 
@@ -337,7 +337,7 @@ function gmc_doConversion() {
        }
 
        // add authors to blog team
-       $blog = new Blog($nucleus_blogid);
+       $blog =& $manager->getBlog($nucleus_blogid);
        global $catid;
        $catid = $blog->getDefaultCategory();
        for ($i=0;$i<$authorcount;$i++)