[xoops-cvslog 2212] CVS update: xoops2jp/html/install

Back to archive index

Minahito minah****@users*****
2006年 2月 4日 (土) 03:25:19 JST


Index: xoops2jp/html/install/makedata.php
diff -u xoops2jp/html/install/makedata.php:1.2.8.5 xoops2jp/html/install/makedata.php:1.2.8.6
--- xoops2jp/html/install/makedata.php:1.2.8.5	Sat Feb  4 03:20:59 2006
+++ xoops2jp/html/install/makedata.php	Sat Feb  4 03:25:19 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: makedata.php,v 1.2.8.5 2006/02/03 18:20:59 ryuji_amano Exp $
+// $Id: makedata.php,v 1.2.8.6 2006/02/03 18:25:19 minahito Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -238,7 +238,15 @@
     $time = time();
 
     // RMV-NOTIFY (updated for extra column in table)
-    $dbm->insert("modules", " VALUES (${mid}, '" . constant($module_name) . "', 100, ".$time.", 0, 1, '${module}', 0, 1, 0, 0, 0, 0)");
+    //
+    // TODO We should set hasconfig and more option values here.
+    //
+    $hasconfig = isset($xoops_version['config']) ? 1 : 0;
+	$hasmain = 0;
+	if (isset($xoops_version['hasMain']) && $xoops_version['hasMain'] == 1) {
+		$hasmain = 1;
+	}
+    $dbm->insert("modules", " VALUES (${mid}, '" . constant($module_name) . "', 100, ".$time.", 0, 1, '${module}', ${hasmain}, 1, 0, ${hasconfig}, 0, 0)");
 
     if (is_array($modversion['templates']) && count($modversion['templates']) > 0) {
         foreach ($modversion['templates'] as $tplfile) {


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