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

Zurück zum Archiv-Index

Minahito minah****@users*****
2006年 9月 28日 (木) 14:01:28 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.10 xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php:1.1.2.10.2.1
--- xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php:1.1.2.10	Thu Aug  3 18:33:27 2006
+++ xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php	Thu Sep 28 14:01:28 2006
@@ -12,7 +12,7 @@
  * 
  * @package legacy
  */
-class Legacy_AdminSideMenu extends XCube_BlockProcedure
+class Legacy_AdminSideMenu extends Legacy_BlockProcedure
 {
 	var $mModules = array();
 	
@@ -57,18 +57,14 @@
 		}
 		
 		$db=&$controller->getDB();
-		//
-		// TODO : We don't use handler and write sql directly.
-		//
-		$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";
-
-		$replaceMap=array("mod"=>$db->prefix("modules"),
-		                 "perm"=>$db->prefix("group_permission"),
-		                 "groups"=>implode(",",$user->getGroups()));
 
-		$sql=XCube_Utils::formatMessageByMap($sql,$replaceMap);
+		$mod = $db->prefix("modules");
+		$perm = $db->prefix("group_permission");
+		$groups = implode(",", $user->getGroups());
+						 
+		$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";
 
 		$result=$db->query($sql);
 		
Index: xoops2jp/html/modules/base/admin/blocks/AdminActionSearch.class.php
diff -u xoops2jp/html/modules/base/admin/blocks/AdminActionSearch.class.php:1.1.2.4 xoops2jp/html/modules/base/admin/blocks/AdminActionSearch.class.php:1.1.2.4.2.1
--- xoops2jp/html/modules/base/admin/blocks/AdminActionSearch.class.php:1.1.2.4	Thu Aug  3 18:33:27 2006
+++ xoops2jp/html/modules/base/admin/blocks/AdminActionSearch.class.php	Thu Sep 28 14:01:28 2006
@@ -10,7 +10,7 @@
  * 
  * @package legacy
  */
-class Legacy_AdminActionSearch extends XCube_BlockProcedure
+class Legacy_AdminActionSearch extends Legacy_BlockProcedure
 {
 	function getName()
 	{


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