1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 18:23:26 +02:00

- Fix #1602 (reported by Cox)

Do not display var=value using config-get (easy scripting)
This commit is contained in:
Pierre Joye
2004-06-15 16:48:49 +00:00
parent 98e59d58ba
commit 0f5e09c192
+3 -3
View File
@@ -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.
// }}}
}
?>
?>