cvs: pear-core /PEAR/Command Config.php
| From: | Greg Beaver | Date: | Fri, 26 Nov 2004 20:30:26 +0000 |
| Subject: | cvs: pear-core /PEAR/Command Config.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-26539@lists.php.net to get a copy of this message | ||
cellog Fri Nov 26 15:30:26 2004 EDT
Modified files:
/pear-core/PEAR/Command Config.php
Log:
for default case, make sure the layer is user, and not
the default channel
http://cvs.php.net/diff.php/pear-core/PEAR/Command/Config.php?r1=1.35&r2=1.36&ty=u
Index: pear-core/PEAR/Command/Config.php
diff -u pear-core/PEAR/Command/Config.php:1.35 pear-core/PEAR/Command/Config.php:1.36
--- pear-core/PEAR/Command/Config.php:1.35 Fri Nov 26 15:14:36 2004
+++ pear-core/PEAR/Command/Config.php Fri Nov 26 15:30:26 2004
@@ -18,7 +18,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: Config.php,v 1.35 2004/11/26 20:14:36 cellog Exp $
+// $Id: Config.php,v 1.36 2004/11/26 20:30:26 cellog Exp $
require_once "PEAR/Command/Common.php";
require_once "PEAR/Config.php";
@@ -227,6 +227,9 @@
return $this->raiseError('Channel "' . $params[1] . '"
does not exist');
}
}
+ if (count($params) == 2) {
+ array_push($params, 'user');
+ }
array_push($params, $channel);
if (!call_user_func_array(array(&$this->config, 'set'), $params))
{
@@ -238,6 +241,7 @@
if ($failmsg) {
return $this->raiseError($failmsg);
}
+ $this->ui->outputData('config-set succeeded', $command);
return true;
}