ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 4854 for OpenPNE/trunk


Ignore:
Timestamp:
Dec 26, 2007, 7:51:20 PM (15 years ago)
Author:
ebihara
Message:

#1707:不要な setLocale() の削除、PEARコーディング規約に沿っていなかった箇所の修正

Location:
OpenPNE/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/lib/include/Services/Amazon.php

    r4850 r4854  
    800800        // request for the URL.
    801801        $http = &new HTTP_Request($url);
    802         if ($this->_proxy_host) $http->setProxy($this->_proxy_host, $this->_proxy_port, $this->_proxy_user, $this->_proxy_pass);
     802        if ($this->_proxy_host) {
     803            $http->setProxy($this->_proxy_host, $this->_proxy_port, $this->_proxy_user, $this->_proxy_pass);
     804        }
    803805        $http->addHeader('User-Agent', 'Services_Amazon/' . $this->getApiVersion());
    804806        $http->sendRequest();
  • OpenPNE/trunk/webapp/lib/db/review.php

    r4850 r4854  
    9898    $amazon =& new Services_Amazon(AMAZON_TOKEN, AMAZON_AFFID, AMAZON_LOCALE, AMAZON_BASEURL);
    9999    $amazon->setLocale(AMAZON_LOCALE);
    100     if (OPENPNE_USE_HTTP_PROXY) $amazon->setProxy(OPENPNE_HTTP_PROXY_HOST, OPENPNE_HTTP_PROXY_PORT);
     100    if (OPENPNE_USE_HTTP_PROXY) {
     101        $amazon->setProxy(OPENPNE_HTTP_PROXY_HOST, OPENPNE_HTTP_PROXY_PORT);
     102    }
    101103    $products = $amazon->searchKeyword($keyword, $category, $page);
    102104    if (PEAR::isError($products)) {
     
    134136    $amazon =& new Services_Amazon(AMAZON_TOKEN, AMAZON_AFFID, AMAZON_LOCALE, AMAZON_BASEURL);
    135137    $amazon->setLocale(AMAZON_LOCALE);
    136     if (OPENPNE_USE_HTTP_PROXY) $amazon->setProxy(OPENPNE_HTTP_PROXY_HOST, OPENPNE_HTTP_PROXY_PORT);
     138    if (OPENPNE_USE_HTTP_PROXY) {
     139        $amazon->setProxy(OPENPNE_HTTP_PROXY_HOST, OPENPNE_HTTP_PROXY_PORT);
     140    }
    137141    $keyword = mb_convert_encoding($keyword, "UTF-8", "auto");
    138142
Note: See TracChangeset for help on using the changeset viewer.