summaryrefslogtreecommitdiff
path: root/pear
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2004-06-15 16:48:49 +0000
committerPierre Joye <pajoye@php.net>2004-06-15 16:48:49 +0000
commit0f5e09c19238603a759e086cc20ddc334957a588 (patch)
treef5f19dc7ecc2c3adcfafc37dc0ad5aea01dc7673 /pear
parent98e59d58badf3165f5a4fc0adfb591f8be6c212c (diff)
downloadphp-git-0f5e09c19238603a759e086cc20ddc334957a588.tar.gz
- Fix #1602 (reported by Cox)
Do not display var=value using config-get (easy scripting)
Diffstat (limited to 'pear')
-rw-r--r--pear/PEAR/Command/Config.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/pear/PEAR/Command/Config.php b/pear/PEAR/Command/Config.php
index adb5fe4cc9..edf518fe98 100644
--- a/pear/PEAR/Command/Config.php
+++ b/pear/PEAR/Command/Config.php
@@ -139,9 +139,9 @@ displays help for all configuration parameters.
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 @@ displays help for all configuration parameters.
// }}}
}
-?> \ No newline at end of file
+?>