cvs: php4(NEW_UI_API) /pear/PEAR/Command Config.php
| From: | Stig Bakken | Date: | Sun, 02 Jun 2002 10:02:28 +0000 |
| Subject: | cvs: php4(NEW_UI_API) /pear/PEAR/Command Config.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4360@lists.php.net to get a copy of this message | ||
ssb Sun Jun 2 06:02:28 2002 EDT
Modified files: (Branch: NEW_UI_API)
/php4/pear/PEAR/Command Config.php
Log:
* make output of "config-get" easier to parse
Index: php4/pear/PEAR/Command/Config.php
diff -u php4/pear/PEAR/Command/Config.php:1.15.2.4 php4/pear/PEAR/Command/Config.php:1.15.2.5
--- php4/pear/PEAR/Command/Config.php:1.15.2.4 Sun Jun 2 05:59:21 2002
+++ php4/pear/PEAR/Command/Config.php Sun Jun 2 06:02:28 2002
@@ -18,7 +18,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: Config.php,v 1.15.2.4 2002/06/02 09:59:21 ssb Exp $
+// $Id: Config.php,v 1.15.2.5 2002/06/02 10:02:28 ssb Exp $
require_once "PEAR/Command/Common.php";
require_once "PEAR/Config.php";
@@ -115,9 +115,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("$params[0]=" .
$this->config->get($params[0]), $command);
} else {
- $data = "($params[1])$params[0] = " .$this->config->get($params[0],
$params[1]);
+ $data = "$params[1].$params[0]=" .$this->config->get($params[0],
$params[1]);
$this->ui->outputData($data, $command);
}
return true;