[xoops-cvslog 227] CVS update: xoops2jp/html/include

Zurück zum Archiv-Index

onokazu onoka****@users*****
2005年 6月 30日 (木) 11:57:48 JST


Index: xoops2jp/html/include/comment_post.php
diff -u xoops2jp/html/include/comment_post.php:1.2.6.3 xoops2jp/html/include/comment_post.php:1.2.6.3.2.1
--- xoops2jp/html/include/comment_post.php:1.2.6.3	Mon Apr 25 13:04:51 2005
+++ xoops2jp/html/include/comment_post.php	Thu Jun 30 11:57:47 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: comment_post.php,v 1.2.6.3 2005/04/25 04:04:51 onokazu Exp $
+// $Id: comment_post.php,v 1.2.6.3.2.1 2005/06/30 02:57:47 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -35,6 +35,7 @@
 include_once XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/comment.php';
 include_once XOOPS_ROOT_PATH.'/include/comment_constants.php';
 $com_id = isset($_POST['com_id']) ? intval($_POST['com_id']) : 0;
+$extra_params = '';
 if ('system' == $xoopsModule->getVar('dirname')) {
     if (empty($com_id)) {
         exit();
@@ -56,7 +57,6 @@
     $com_modid = $xoopsModule->getVar('mid');
     $redirect_page = $comment_config['pageName'].'?';
     if (isset($comment_config['extraParams']) && is_array($comment_config['extraParams'])) {
-        $extra_params = '';
         foreach ($comment_config['extraParams'] as $extra_param) {
             $extra_params .= isset($_POST[$extra_param]) ? $extra_param.'='.$_POST[$extra_param].'&amp;' : $extra_param.'=&amp;';
         }
@@ -266,8 +266,8 @@
     $comment->setVar('com_icon', $com_icon);
     $comment->setVar('com_modified', time());
     $comment->setVar('com_modid', $com_modid);
-    if (isset($extra_params)) {
-        $comment->setVar('com_exparams', $extra_params);
+    if (!empty($extra_params)) {
+        $comment->setVar('com_exparams', str_replace('&amp;', '&', $extra_params));
     }
     if (false != $comment_handler->insert($comment)) {
         $newcid = $comment->getVar('com_id');


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