cvs: pear /Services_Technorati/Services Technorati.php

From: Date: Thu, 01 Mar 2007 12:55:54 +0000
Subject: cvs: pear /Services_Technorati/Services Technorati.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-44921@lists.php.net to get a copy of this message
jystewart Thu Mar 1 12:55:54 2007 UTC Modified files: /pear/Services_Technorati/Services Technorati.php Log: Switch user agent string to static variable http://cvs.php.net/viewvc.cgi/pear/Services_Technorati/Services/Technorati.php?r1=1.22&r2=1.23&diff_format=u Index: pear/Services_Technorati/Services/Technorati.php diff -u pear/Services_Technorati/Services/Technorati.php:1.22 pear/Services_Technorati/Services/Technorati.php:1.23 --- pear/Services_Technorati/Services/Technorati.php:1.22 Fri Feb 23 15:44:26 2007 +++ pear/Services_Technorati/Services/Technorati.php Thu Mar 1 12:55:54 2007 @@ -11,7 +11,7 @@ * @author James Stewart <james@jystewart.net> * @copyright 2006 James Stewart * @license http://www.gnu.org/copyleft/lesser.html GNU LGPL - * @version CVS: $Id: Technorati.php,v 1.22 2007/02/23 15:44:26 jystewart Exp $ + * @version CVS: $Id: Technorati.php,v 1.23 2007/03/01 12:55:54 jystewart Exp $ * @link http://pear.php.net/package/Services_Technorati */ @@ -61,7 +61,7 @@ * @access public * @var string */ - public $userAgent = 'Services_Technorati v2'; + public static $userAgent = 'Services_Technorati v2'; /** * API Key @@ -327,7 +327,7 @@ /* We don't cache this query */ $request =& new HTTP_Request($this->apiUrl . 'attention'); - $request->addHeader('User-Agent', $this->userAgent); + $request->addHeader('User-Agent', self::$userAgent); $request->setMethod(HTTP_REQUEST_METHOD_POST); $addfile = $request->addFile('attention.xml', $file); @@ -367,7 +367,7 @@ $url = sprintf('%s/%s?key=%s', $this->apiUrl, $query, $this->apiKey); $request =& new HTTP_Request($this->apiUrl . 'attention'); - $request->addHeader('User-Agent', $this->userAgent); + $request->addHeader('User-Agent', self::$userAgent); $request->setURL($url); if (is_array($options)) {

« previous php.pear.cvs (#44921) next »