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

Back to archive index

Minahito minah****@users*****
2006年 11月 21日 (火) 00:54:25 JST


Index: xoops2jp/html/modules/legacy/class/non_installation_module.php
diff -u xoops2jp/html/modules/legacy/class/non_installation_module.php:1.1.2.3 xoops2jp/html/modules/legacy/class/non_installation_module.php:1.1.2.4
--- xoops2jp/html/modules/legacy/class/non_installation_module.php:1.1.2.3	Mon Nov 20 23:55:53 2006
+++ xoops2jp/html/modules/legacy/class/non_installation_module.php	Tue Nov 21 00:54:25 2006
@@ -37,11 +37,9 @@
 					if (!in_array($dir, $this->_mExclusions) && is_dir(XOOPS_MODULE_PATH . "/" . $dir)) {
 						$module =& $this->get($dir);
 						if ($module !== false ) {
-							if (empty($modversion['disable_legacy_2nd_installer'])) {
-								$this->_mXoopsModules[] =& $module;
-							}
-							unset($module);
+							$this->_mXoopsModules[] =& $module;
 						}
+						unset($module);
 					}
 				}
 			}
@@ -79,6 +77,19 @@
 	{
 		return $this->_mXoopsModules;
 	}
+	
+	function &getObjectsFor2ndInstaller()
+	{
+		$ret = array();
+		
+		foreach (array_keys($this->_mXoopsModules) as $key) {
+			if (empty($this->_mXoopsModules[$key]->modinfo['disable_legacy_2nd_installer'])) {
+				$ret[] =& $this->_mXoopsModules[$key];
+			}
+		}
+		
+		return $ret;
+	}
 }
 
 ?>


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