From: Jan Schneider Date: Tue, 6 Jul 2010 14:30:12 +0000 (+0200) Subject: MFB: Use new Net_Sieve feature to enable debug handler for the authentication state... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=65528b7d48336550ec743504cda189002ff64f76;p=horde.git MFB: Use new Net_Sieve feature to enable debug handler for the authentication state already. --- 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')); }