cvs: pear-core /PEAR/Command Config.php

From: Date: Fri, 26 Nov 2004 21:02:36 +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-26544@lists.php.net to get a copy of this message
cellog Fri Nov 26 16:02:36 2004 EDT Modified files: /pear-core/PEAR/Command Config.php Log: make sure that non-user layer config values are saved http://cvs.php.net/diff.php/pear-core/PEAR/Command/Config.php?r1=1.36&r2=1.37&ty=u Index: pear-core/PEAR/Command/Config.php diff -u pear-core/PEAR/Command/Config.php:1.36 pear-core/PEAR/Command/Config.php:1.37 --- pear-core/PEAR/Command/Config.php:1.36 Fri Nov 26 15:30:26 2004 +++ pear-core/PEAR/Command/Config.php Fri Nov 26 16:02:36 2004 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Config.php,v 1.36 2004/11/26 20:30:26 cellog Exp $ +// $Id: Config.php,v 1.37 2004/11/26 21:02:36 cellog Exp $ require_once "PEAR/Command/Common.php"; require_once "PEAR/Config.php"; @@ -229,6 +229,9 @@ } if (count($params) == 2) { array_push($params, 'user'); + $layer = 'user'; + } else { + $layer = $params[2]; } array_push($params, $channel); if (!call_user_func_array(array(&$this->config, 'set'), $params)) @@ -236,7 +239,7 @@ array_pop($params); $failmsg = "config-set (" . implode(", ", $params) . ") failed, channel $channel"; } else { - $this->config->store(); + $this->config->store($layer); } if ($failmsg) { return $this->raiseError($failmsg);

« previous php.pear.cvs (#26544) next »