[xoops-cvslog 5531] CVS update: xoops2jp/html/modules/legacy/admin/class

Back to archive index

Minahito minah****@users*****
2006年 10月 31日 (火) 16:21:22 JST


Index: xoops2jp/html/modules/legacy/admin/class/ModuleInstaller.class.php
diff -u xoops2jp/html/modules/legacy/admin/class/ModuleInstaller.class.php:1.1.2.2 xoops2jp/html/modules/legacy/admin/class/ModuleInstaller.class.php:1.1.2.3
--- xoops2jp/html/modules/legacy/admin/class/ModuleInstaller.class.php:1.1.2.2	Sun Oct 15 01:00:11 2006
+++ xoops2jp/html/modules/legacy/admin/class/ModuleInstaller.class.php	Tue Oct 31 16:21:21 2006
@@ -166,12 +166,7 @@
 	 */
 	function _installTemplate(&$module, &$log)
 	{
-        $templates = $module->getInfo('templates');
-        if ($templates != false) {
-            foreach ($templates as $template) {
-                Legacy_ModuleUtils::installTemplate($module, $template, $log);
-            }
-        }
+		Legacy_ModuleUtils::installAllModuleTemplates($module, $log);
 	}
 
     function _installBlock()
@@ -185,8 +180,7 @@
         $func_num=0;
         foreach ($definedBlocks as $block) {
             $func_num++;
-            $newBlock =& Legacy_ModuleUtils::createBlockByInfo($this->mModule, $block);
-            $newBlock->setVar('func_num', $func_num);
+            $newBlock =& Legacy_ModuleUtils::createBlockByInfo($this->mModule, $block, $func_num);
 
             Legacy_ModuleUtils::installBlock($this->mModule, $newBlock, $block, $this->mLog);
         }


xoops-cvslog メーリングリストの案内
Back to archive index