[xoops-cvslog 1497] CVS update: xoops2jp/html/modules/base/admin/class

Back to archive index

Minahito minah****@users*****
2005年 12月 29日 (木) 16:25:13 JST


Index: xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php
diff -u xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php:1.1.2.4 xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php:1.1.2.5
--- xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php:1.1.2.4	Wed Dec 28 23:16:47 2005
+++ xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php	Thu Dec 29 16:25:13 2005
@@ -8,6 +8,8 @@
  */
 class Legacy_ModuleInstaller extends Legacy_AbstractModuleInstaller
 {
+	var $mAgree = false;
+
 	/**
 	 * Load xoops module object that isn't installed and return it.
 	 * @static
@@ -29,6 +31,10 @@
 		$module->setVar('weight', 1);
 		$module->loadInfoAsVar($this->mDirname);
 		
+		if (isset($module->modinfo['installer']) && isset($module->modinfo['installer']['licence']) ) {
+			$this->mAgree = true;
+		}
+		
 		return $module;
 	}
 	
@@ -114,6 +120,11 @@
 	{
 		Legacy_ModuleUtils::insertAllConfigs($this->mModule, $this->mLog);
 	}
+
+	function hasAgree()
+	{
+		return $this->mAgree;
+	}
 }
 
 ?>
\ No newline at end of file
Index: xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php
diff -u xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php:1.1.2.3 xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php:1.1.2.4
--- xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php:1.1.2.3	Wed Dec 28 22:53:58 2005
+++ xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php	Thu Dec 29 16:25:13 2005
@@ -130,6 +130,11 @@
 	{
 		return $this->mLog;
 	}
+	
+	function hasAgree()
+	{
+		return false;
+	}
 }
 
 ?>
\ No newline at end of file


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