Minahito
minah****@users*****
2006年 9月 10日 (日) 19:47:29 JST
Index: xoops2jp/html/modules/pm/preload/Preload.class.php diff -u xoops2jp/html/modules/pm/preload/Preload.class.php:1.1.2.4 xoops2jp/html/modules/pm/preload/Preload.class.php:1.1.2.5 --- xoops2jp/html/modules/pm/preload/Preload.class.php:1.1.2.4 Fri Jul 7 12:18:29 2006 +++ xoops2jp/html/modules/pm/preload/Preload.class.php Sun Sep 10 19:47:29 2006 @@ -49,14 +49,24 @@ // // Does this access request reply mode? // - $reply = xoops_getrequest('reply'); - $msg_id = intval(xoops_getrequest('msg_id')); - - if ($reply == null ||$msg_id == 0) { - $root->mController->executeForward(XOOPS_MODULE_URL . "/pm/pmlite.php"); + $params = array(); + if (xoops_getrequest('reply') != null) { + $params[] = "reply=" . xoops_getrequest('reply') ? 1 : 0; + } + + if (xoops_getrequest('msg_id') != null) { + $params[] = "msg_id=" . intval(xoops_getrequest('msg_id')); + } + + if (xoops_getrequest('to_userid') != null) { + $params[] = "to_userid=" . intval(xoops_getrequest('to_userid')); + } + + if (count($params) > 0) { + $root->mController->executeForward(XOOPS_MODULE_URL . "/pm/pmlite.php?" . implode('&', $params)); } else { - $root->mController->executeForward(XOOPS_MODULE_URL . "/pm/pmlite.php?reply=1&msg_id=" . $msg_id); + $root->mController->executeForward(XOOPS_MODULE_URL . "/pm/pmlite.php"); } }