[xoops-cvslog 3103] CVS update: xoops2jp/html/modules/user/admin/actions

アーカイブの一覧に戻る

NobuNobu nobun****@users*****
2006年 5月 18日 (木) 23:04:04 JST


Index: xoops2jp/html/modules/user/admin/actions/GroupPropertyAction.class.php
diff -u xoops2jp/html/modules/user/admin/actions/GroupPropertyAction.class.php:1.1.2.5 xoops2jp/html/modules/user/admin/actions/GroupPropertyAction.class.php:1.1.2.6
--- xoops2jp/html/modules/user/admin/actions/GroupPropertyAction.class.php:1.1.2.5	Thu May 18 01:42:32 2006
+++ xoops2jp/html/modules/user/admin/actions/GroupPropertyAction.class.php	Thu May 18 23:04:04 2006
@@ -49,25 +49,28 @@
 		
 		$this->mUsers =& $memberHandler->getUsersByGroup($this->mGroup->getVar('groupid'), true, $this->mPageNavi->getPerPage(), $this->mPageNavi->getStart());
 
+		$moduleHandler =& xoops_gethandler('module');
 		//
 		// Get...
 		//
 		if (file_exists(XOOPS_ROOT_PATH . "/modules/system/constants.php")) {
-    		require_once XOOPS_ROOT_PATH . "/modules/system/constants.php";
-    		$fileHandler = opendir(XOOPS_ROOT_PATH . "/modules/system/admin");
-    		while ($file = readdir($fileHandler)) {
-    			$infoFile = XOOPS_ROOT_PATH . "/modules/system/admin/" . $file . "/xoops_version.php";
-    			if (file_exists($infoFile)) {
-    				require_once $infoFile;
-    				if (!empty($modversion['category'])) {
-    					$item =& new User_PermissionSystemAdminItem($modversion['category'], $modversion['name']);
-    					$this->mSystemPermissions[] =& new User_Permission($this->mGroup->getVar('groupid'), $item);
-
-    					unset($item);
-    				}
-    				unset($modversion);
-    			}
-    		}
+		    if($moduleHandler->getByDirname('system')) {
+        		require_once XOOPS_ROOT_PATH . "/modules/system/constants.php";
+        		$fileHandler = opendir(XOOPS_ROOT_PATH . "/modules/system/admin");
+        		while ($file = readdir($fileHandler)) {
+        			$infoFile = XOOPS_ROOT_PATH . "/modules/system/admin/" . $file . "/xoops_version.php";
+        			if (file_exists($infoFile)) {
+        				require_once $infoFile;
+        				if (!empty($modversion['category'])) {
+        					$item =& new User_PermissionSystemAdminItem($modversion['category'], $modversion['name']);
+        					$this->mSystemPermissions[] =& new User_Permission($this->mGroup->getVar('groupid'), $item);
+
+        					unset($item);
+        				}
+        				unset($modversion);
+        			}
+        		}
+        	}
         }
 		//
 		// Get module list


xoops-cvslog メーリングリストの案内
アーカイブの一覧に戻る