Minahito
minah****@users*****
2006年 2月 4日 (土) 16:32:40 JST
Index: xoops2jp/html/install/makedata.php diff -u xoops2jp/html/install/makedata.php:1.2.8.7 xoops2jp/html/install/makedata.php:1.2.8.8 --- xoops2jp/html/install/makedata.php:1.2.8.7 Sat Feb 4 03:29:42 2006 +++ xoops2jp/html/install/makedata.php Sat Feb 4 16:32:39 2006 @@ -1,5 +1,5 @@ <?php -// $Id: makedata.php,v 1.2.8.7 2006/02/03 18:29:42 minahito Exp $ +// $Id: makedata.php,v 1.2.8.8 2006/02/04 07:32:39 minahito Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -248,6 +248,14 @@ } $dbm->insert("modules", " VALUES (${mid}, '" . constant($module_name) . "', 100, ".$time.", 0, 1, '${module}', ${hasmain}, 1, 0, ${hasconfig}, 0, 0)"); + // + // Database + // TODO Dependence on mysql, Now. + // + if (isset($modversion['sqlfile']['mysql'])) { + $dbm->queryFromFile("../modules/${module}/" . $modversion['sqlfile']['mysql']); + } + if (is_array($modversion['templates']) && count($modversion['templates']) > 0) { foreach ($modversion['templates'] as $tplfile) { if ($fp = fopen("../modules/${module}/templates/".$tplfile['file'], 'r')) {