[xoops-cvslog 3165] CVS update: xoops2jp/html/modules/base/admin/blocks

Back to archive index

Minahito minah****@users*****
2006年 5月 26日 (金) 18:02:46 JST


Index: xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php
diff -u xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php:1.1.2.8 xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php:1.1.2.9
--- xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php:1.1.2.8	Fri May 12 19:13:54 2006
+++ xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php	Fri May 26 18:02:46 2006
@@ -55,7 +55,7 @@
 		//
 		// TODO : We don't use handler and write sql directly.
 		//
-		$sql = "SELECT {mod}.* FROM {mod},{perm} ".
+		$sql = "SELECT DISTINCT {mod}.mid FROM {mod},{perm} ".
 		        "WHERE {mod}.isactive=1 AND {mod}.mid={perm}.gperm_itemid AND {perm}.gperm_name='module_admin' AND {perm}.gperm_groupid IN ({groups}) ".
 		        "ORDER BY {mod}.weight, {mod}.mid";
 
@@ -66,9 +66,11 @@
 		$sql=XCube_Utils::formatMessageByMap($sql,$replaceMap);
 
 		$result=$db->query($sql);
+		
+		$handler =& xoops_gethandler('module');
+		
 		while($row=$db->fetchArray($result)) {
-			$module = new XoopsModule();
-			$module->assignVars($row);
+			$module =& $handler->get($row['mid']);
 			$dmy=&$module->getInfo();
 
 			//


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