cvs: php-src /pear/PEAR/Command Config.php

From: Date: Tue, 15 Jun 2004 16:48:49 +0000
Subject: cvs: php-src /pear/PEAR/Command Config.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-395@lists.php.net to get a copy of this message
pajoye Tue Jun 15 12:48:49 2004 EDT Modified files: /php-src/pear/PEAR/Command Config.php Log: - Fix #1602 (reported by Cox) Do not display var=value using config-get (easy scripting) http://cvs.php.net/diff.php/php-src/pear/PEAR/Command/Config.php?r1=1.26&r2=1.27&ty=u Index: php-src/pear/PEAR/Command/Config.php diff -u php-src/pear/PEAR/Command/Config.php:1.26 php-src/pear/PEAR/Command/Config.php:1.27 --- php-src/pear/PEAR/Command/Config.php:1.26 Thu Jan 8 12:33:13 2004 +++ php-src/pear/PEAR/Command/Config.php Tue Jun 15 12:48:49 2004 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Config.php,v 1.26 2004/01/08 17:33:13 sniper Exp $ +// $Id: Config.php,v 1.27 2004/06/15 16:48:49 pajoye Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Config.php"; @@ -139,9 +139,9 @@ if (sizeof($params) < 1 || sizeof($params) > 2) { return $this->raiseError("config-get expects 1 or 2 parameters"); } elseif (sizeof($params) == 1) { - $this->ui->outputData("$params[0]=" . $this->config->get($params[0]), $command); + $this->ui->outputData($this->config->get($params[0]), $command); } else { - $data = "$params[1].$params[0]=" .$this->config->get($params[0], $params[1]); + $data = $this->config->get($params[0], $params[1]); $this->ui->outputData($data, $command); } return true; @@ -222,4 +222,4 @@ // }}} } -?> \ No newline at end of file +?>

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