cvs: pear-core /PEAR REST.php

From: Date: Thu, 14 May 2009 01:34:49 +0000
Subject: cvs: pear-core /PEAR REST.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-8403@lists.php.net to get a copy of this message
dufuz Thu May 14 01:34:49 2009 UTC Modified files: /pear-core/PEAR REST.php Log: clean up http://cvs.php.net/viewvc.cgi/pear-core/PEAR/REST.php?r1=1.40&r2=1.41&diff_format=u Index: pear-core/PEAR/REST.php diff -u pear-core/PEAR/REST.php:1.40 pear-core/PEAR/REST.php:1.41 --- pear-core/PEAR/REST.php:1.40 Thu Mar 26 23:12:46 2009 +++ pear-core/PEAR/REST.php Thu May 14 01:34:48 2009 @@ -9,7 +9,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License - * @version CVS: $Id: REST.php,v 1.40 2009/03/26 23:12:46 dufuz Exp $ + * @version CVS: $Id: REST.php,v 1.41 2009/05/14 01:34:48 dufuz Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 1.4.0a1 */ @@ -39,7 +39,7 @@ function PEAR_REST(&$config, $options = array()) { - $this->config = &$config; + $this->config = &$config; $this->_options = $options; } @@ -213,11 +213,9 @@ */ function saveCache($url, $contents, $lastmodified, $nochange = false, $cacheid = null) { - $cacheidfile = $this->config->get('cache_dir') . DIRECTORY_SEPARATOR . - md5($url) . 'rest.cacheid'; - - $cachefile = $this->config->get('cache_dir') . DIRECTORY_SEPARATOR . - md5($url) . 'rest.cachefile'; + $cachedir = $this->config->get('cache_dir') . DIRECTORY_SEPARATOR . md5($url); + $cacheidfile = $cachedir . 'rest.cacheid'; + $cachefile = $cachedir . 'rest.cachefile'; if ($cacheid === null && $nochange) { $cacheid = unserialize(implode('', file($cacheidfile)));

« previous php.pear.core (#8403) next »