[P2-php-svn] [750] expack:

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 12月 31日 (木) 17:47:48 JST


Revision: 750
          http://sourceforge.jp/projects/p2-php/svn/view?view=rev&revision=750
Author:   rsk
Date:     2009-12-31 17:47:48 +0900 (Thu, 31 Dec 2009)

Log Message:
-----------
expack:
- P2Client::post() の第7引数 (bool $beRes) を
  デフォルト値=false のオプション引数にした。

Modified Paths:
--------------
    p2ex/trunk/lib/P2Client.php


-------------- next part --------------
Modified: p2ex/trunk/lib/P2Client.php
===================================================================
--- p2ex/trunk/lib/P2Client.php	2009-12-30 16:40:34 UTC (rev 749)
+++ p2ex/trunk/lib/P2Client.php	2009-12-31 08:47:48 UTC (rev 750)
@@ -227,7 +227,8 @@
     /**
      * ƒXƒŒƒbƒh‚ɏ‘‚«ž‚Þ
      *
-     * csrfId‚ðŽæ“¾‚µA‚©‚ÂŒöŽ®p2‚ÌŠù“Ç‚ðÅV‚·‚邽‚߁A‚Ü‚¸ read.php ‚ð’@‚­B
+     * csrfId‚ðŽæ“¾‚µA‚©‚ÂŒöŽ®p2‚ÌŠù“Ç‚ðÅV‚̏ó‘Ô‚É‚·‚邽‚߁A
+     * ‚Ü‚¸ read.php ‚ð’@‚­B
      * ’ʐM—Ê‚ðß–ñ‚Å‚«‚é‚悤‚É ls=l1n ‚Æ‚µ‚Ä‚¢‚éB
      * popup=1 ‚͏‘‚«ž‚ÝŒã‚̃y[ƒW‚ɃŠƒ_ƒCƒŒƒNƒg‚³‚¹‚È‚¢‚½‚߁B
      *
@@ -237,13 +238,13 @@
      * @param string $from
      * @param string $mail
      * @param string $message
-     * @param bool $beres
+     * @param bool $beRes
      * @param mixed &$response
      * @return bool
      * @throws P2Exception
      */
     public function post($host, $bbs, $key, $from, $mail, $message,
-                         $beres, &$response = null)
+                         $beRes = false, &$response = null)
     {
         $dom = new P2DOM($this->readThread($host, $bbs, $key, 'l1n', $response));
         if ($form = $this->getPostForm($dom)) {
@@ -254,7 +255,7 @@
             $postData[self::FIELD_NAME_FROM]    = rawurlencode($from);
             $postData[self::FIELD_NAME_MAIL]    = rawurlencode($mail);
             $postData[self::FIELD_NAME_MESSAGE] = rawurlencode($message);
-            if ($beres) {
+            if ($beRes) {
                 $postData[self::FIELD_NAME_BERES] = '1';
             } elseif (array_key_exists(self::FIELD_NAME_BERES, $postData)) {
                 unset($postData[self::FIELD_NAME_BERES]);



P2-php-svn メーリングリストの案内
Back to archive index