Minahito
minah****@users*****
2006年 10月 5日 (木) 18:07:09 JST
Index: xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php diff -u xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php:1.1.2.19 xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php:1.1.2.19.2.1 --- xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php:1.1.2.19 Fri Sep 22 19:38:06 2006 +++ xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php Thu Oct 5 18:07:09 2006 @@ -128,7 +128,7 @@ // Add a permission which administrators can read. // $root =& XCube_Root::getSingleton(); - $groups = $root->mController->mXoopsUser->getGroups(); + $groups = $root->mContext->mXoopsUser->getGroups(); foreach($groups as $mygroup) { $readPerm =& $this->_createPermission($mygroup); $readPerm->setVar('gperm_name', 'module_read'); Index: xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php diff -u xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php:1.1.2.24 xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php:1.1.2.24.2.1 --- xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php:1.1.2.24 Sun Sep 10 20:57:35 2006 +++ xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php Thu Oct 5 18:07:09 2006 @@ -309,7 +309,7 @@ } } else { $root =& XCube_Root::getSingleton(); - $groups = $root->mController->mXoopsUser->getGroups(); + $groups = $root->mContext->mXoopsUser->getGroups(); foreach ($groups as $mygroup) { $bperm->setVar('gperm_groupid', $mygroup); $bperm->setNew();