[xoops-cvslog 5953] CVS update: xoops2jp/html/modules/legacy/kernel

Zurück zum Archiv-Index

Minahito minah****@users*****
2006年 11月 27日 (月) 15:54:52 JST


Index: xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php
diff -u xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.25 xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.26
--- xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.25	Fri Nov 24 18:19:55 2006
+++ xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php	Mon Nov 27 15:54:52 2006
@@ -661,7 +661,8 @@
 							if (preg_match("/(\w+)\.class\.php/", $file, $matches)) {
 								$className = ucfirst($mod_dir) . "_" . $matches[1];
 						
-								if (class_exists($className)) {
+								if (class_exists($className) && !isset($this->_mLoadedFilterNames[$className])) {
+									$this->_mLoadedFilterNames[$className] = true;
 									$instance =& new $className($this);
 									$this->addActionFilter($instance);
 								}
@@ -1227,7 +1228,8 @@
 		foreach ($primaryPreloads as $className => $classPath) {
 			if (file_exists(XOOPS_ROOT_PATH . $classPath)) {
 				require_once XOOPS_ROOT_PATH . $classPath;
-				if (class_exists($className)) {
+				if (class_exists($className) && !isset($this->_mLoadedFilterNames[$className])) {
+					$this->_mLoadedFilterNames[$className] = true;
 					$filter =& new $className($this->mController);
 					$this->mController->addActionFilter($filter);
 					unset($filter);


xoops-cvslog メーリングリストの案内
Zurück zum Archiv-Index