Minahito
minah****@users*****
2006年 1月 24日 (火) 23:21:10 JST
Index: xoops2jp/html/include/comment_reply.php diff -u xoops2jp/html/include/comment_reply.php:1.2.8.1 xoops2jp/html/include/comment_reply.php:1.2.8.2 --- xoops2jp/html/include/comment_reply.php:1.2.8.1 Tue Jan 24 20:05:30 2006 +++ xoops2jp/html/include/comment_reply.php Tue Jan 24 23:21:10 2006 @@ -1,5 +1,5 @@ <?php -// $Id: comment_reply.php,v 1.2.8.1 2006/01/24 11:05:30 minahito Exp $ +// $Id: comment_reply.php,v 1.2.8.2 2006/01/24 14:21:10 minahito Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -35,6 +35,7 @@ if (!defined('XOOPS_ROOT_PATH') || !is_object($xoopsModule)) { exit(); } + require_once XOOPS_ROOT_PATH.'/header.php'; require_once XOOPS_MODULE_PATH . "/base/forms/CommentEditForm.class.php"; @@ -92,6 +93,16 @@ $res_comment =& $comment->createChild(); // +// Initialize manually. +// +if (is_object($xoopsUser)) { + $comment->set('uid', $xoopsUser->get('uid')); +} +else { + $comment->set('uid', 0); +} + +// // Create action form instance and load from a comment object. // if (is_object($xoopsUser) && $xoopsUser->isAdmin()) { Index: xoops2jp/html/include/comment_new.php diff -u xoops2jp/html/include/comment_new.php:1.2.8.1 xoops2jp/html/include/comment_new.php:1.2.8.2 --- xoops2jp/html/include/comment_new.php:1.2.8.1 Tue Jan 24 20:05:20 2006 +++ xoops2jp/html/include/comment_new.php Tue Jan 24 23:21:10 2006 @@ -1,5 +1,5 @@ <?php -// $Id: comment_new.php,v 1.2.8.1 2006/01/24 11:05:20 minahito Exp $ +// $Id: comment_new.php,v 1.2.8.2 2006/01/24 14:21:10 minahito Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -99,6 +99,13 @@ $comment->set("com_modid", $xoopsModule->get('mid')); $comment->set("com_title", $com_title); +if (is_object($xoopsUser)) { + $comment->set('uid', $xoopsUser->get('uid')); +} +else { + $comment->set('uid', 0); +} + // // Create action form instance and load from a comment object. //