cvs: pear /Perm_LiveUser LiveUser.php

From: Date: Mon, 28 Jun 2004 20:48:55 +0000
Subject: cvs: pear /Perm_LiveUser LiveUser.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-21226@lists.php.net to get a copy of this message
arnaud Mon Jun 28 16:48:55 2004 EDT Modified files: /pear/Perm_LiveUser LiveUser.php Log: * we need to include PEAR (to set a default callback) and Log to log errors raised with ErrorStack * wrong test in loadClass, was backward ErrorStack http://cvs.php.net/diff.php/pear/Perm_LiveUser/LiveUser.php?r1=1.110&r2=1.111&ty=u Index: pear/Perm_LiveUser/LiveUser.php diff -u pear/Perm_LiveUser/LiveUser.php:1.110 pear/Perm_LiveUser/LiveUser.php:1.111 --- pear/Perm_LiveUser/LiveUser.php:1.110 Mon Jun 21 18:25:55 2004 +++ pear/Perm_LiveUser/LiveUser.php Mon Jun 28 16:48:54 2004 @@ -33,7 +33,8 @@ * Include PEAR ErrorStack class */ require_once 'PEAR/ErrorStack.php'; - +require_once 'PEAR.php'; +require_once 'Log.php'; /**#@+ * Error related constants definition @@ -85,7 +86,7 @@ * * @var boolean */ -$GLOBALS['_LIVEUSER_DEBUG'] = false; +$GLOBALS['_LIVEUSER_DEBUG'] = true; /** * This is a manager class for a user login system using the LiveUser @@ -116,7 +117,7 @@ * @author Lukas Smith <smith@backendmedia.com> * @author Pierre-Alain Joye <pajoye@php.net> * @author Arnaud Limbourg <arnaud@php.net> - * @version $Id: LiveUser.php,v 1.110 2004/06/21 22:25:55 arnaud Exp $ + * @version $Id: LiveUser.php,v 1.111 2004/06/28 20:48:54 arnaud Exp $ * @package LiveUser */ class LiveUser @@ -509,7 +510,7 @@ function &authFactory($conf) { $classname = 'LiveUser_Auth_Container_' . $conf['type']; - if (LiveUser::loadClass($classname)) { + if (!LiveUser::loadClass($classname)) { return false; } $auth = &new $classname($conf);

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