From 65528b7d48336550ec743504cda189002ff64f76 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 6 Jul 2010 16:30:12 +0200 Subject: [PATCH] MFB: Use new Net_Sieve feature to enable debug handler for the authentication state already. --- ingo/lib/Driver/Timsieved.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ingo/lib/Driver/Timsieved.php b/ingo/lib/Driver/Timsieved.php index cee7a8a34..42b33e782 100644 --- a/ingo/lib/Driver/Timsieved.php +++ b/ingo/lib/Driver/Timsieved.php @@ -61,9 +61,11 @@ class Ingo_Driver_Timsieved extends Ingo_Driver $this->_params['port'], $this->_params['logintype'], Ingo::getUser(false), + $this->_params['debug'], false, - false, - $this->_params['usetls']); + $this->_params['usetls'], + null, + array($this, '_debug')); $res = $this->_sieve->getError(); if ($res instanceof PEAR_Error) { @@ -71,6 +73,8 @@ class Ingo_Driver_Timsieved extends Ingo_Driver throw new Ingo_Exception($res); } + /* BC for older Net_Sieve versions that don't allow specify the debug + * handler in the constructor. */ if (!empty($this->_params['debug'])) { $this->_sieve->setDebug(true, array($this, '_debug')); } -- 2.11.0