--- Config.php.orig 2009-06-29 14:11:46.000000000 +0100
+++ Config.php 2009-06-29 14:22:04.000000000 +0100
@@ -1831,13 +1831,14 @@
*
* @param string config key
* @param string (optional) config layer
+ * @param string (optional) channel (defaults to default channel)
* @return bool TRUE on success, FALSE on failure
*
* @access public
*/
- function remove($key, $layer = 'user')
+ function remove($key, $layer = 'user', $channel=null)
{
- $channel = $this->getDefaultChannel();
+ if ($channel === null) $channel = $this->getDefaultChannel();
if ($channel !== 'pear.php.net') {
if (isset($this->configuration[$layer]['__channels'][$channel][$key])) {
unset($this->configuration[$layer]['__channels'][$channel][$key]);