]> granicus.if.org Git - php/commitdiff
- Fix #1602 (reported by Cox)
authorPierre Joye <pajoye@php.net>
Tue, 15 Jun 2004 16:48:49 +0000 (16:48 +0000)
committerPierre Joye <pajoye@php.net>
Tue, 15 Jun 2004 16:48:49 +0000 (16:48 +0000)
  Do not display var=value using config-get (easy scripting)

pear/PEAR/Command/Config.php

index adb5fe4cc9ee0c144fae7077336dc27cea2587e8..edf518fe98d2c9733f3f5a04622004b91103be72 100644 (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.
     // }}}
 }
 
-?>
\ No newline at end of file
+?>