Minahito
minah****@users*****
2006年 8月 11日 (金) 13:13:02 JST
Index: xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php diff -u xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php:1.1.2.6 xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php:1.1.2.7 --- xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php:1.1.2.6 Sun Aug 6 01:46:48 2006 +++ xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php Fri Aug 11 13:13:02 2006 @@ -1,7 +1,7 @@ <?php /** * @package user - * @version $Id: LegacypageFunctions.class.php,v 1.1.2.6 2006/08/05 16:46:48 minahito Exp $ + * @version $Id: LegacypageFunctions.class.php,v 1.1.2.7 2006/08/11 04:13:02 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -129,7 +129,7 @@ $root =& XCube_Root::getSingleton(); $root->mLanguageManager->loadModuleMessageCatalog('user'); - $userHandler =& xoops_gethandler('user'); + $userHandler =& xoops_getmodulehandler('users', 'user'); $criteria =& new CriteriaCompo(); $criteria->add(new Criteria('uname', xoops_getrequest('uname'))); @@ -141,12 +141,15 @@ return; } - $xoopsUser = $userArr[0]; - - if ($xoopsUser->get('level') == 0) { + if ($userArr[0]->get('level') == 0) { // TODO We should use message "_US_NOACTTPADM" return; } + + $handler =& xoops_gethandler('user'); + $user =& $handler->get($userArr[0]->get('uid')); + + $xoopsUser = $user; // // Regist to session