CVS update: /cowiki/includes/cowiki/class/
[email protected] 28 Apr 2005 01:41:51 -0000
| Newsgroups | gmane.comp.php.cowiki.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: dgorski Date: 2005/04/27 18:41:51 Modified: cowiki/includes/cowiki/class/class.Logger.php Log: Allow SOFTWARE_DEBUG_LEVEL to be empty. This is the same like D_OFF. File Changes: Directory: /cowiki/includes/cowiki/class/ ========================================= File [changed]: class.Logger.php Url: http://cowiki.tigris.org/source/browse/cowiki/includes/cowiki/class/class.Logger.php?r1=1.10&r2=1.11 Delta lines: +4 -2 ------------------- --- class.Logger.php 7 Apr 2005 19:51:38 -0000 1.10 +++ class.Logger.php 28 Apr 2005 01:41:49 -0000 1.11 @@ -2,7 +2,7 @@ /** * - * $Id: class.Logger.php,v 1.10 2005/04/07 19:51:38 dgorski Exp $ + * $Id: class.Logger.php,v 1.11 2005/04/28 01:41:49 dgorski Exp $ * * This file is part of coWiki. coWiki is free software under the terms of * the GNU General Public License (GPL). Read the LICENSE file. If you did @@ -17,7 +17,7 @@ * @author Daniel T. Gorski, <[email protected]> * @copyright (C) Daniel T. Gorski, {@link http://www.develnet.org} * @license http://www.gnu.org/licenses/gpl.html - * @version $Revision: 1.10 $ + * @version $Revision: 1.11 $ * */ @@ -138,6 +138,8 @@ // Check debug level, trick a bit with internal constants if ($nLevel == null) { $sConfValue = Registry::getInstance()->get('SOFTWARE_DEBUG_LEVEL'); + if ($sConfValue == '') { return; } + $sConfValue = str_replace('D_', 'self::D_', $sConfValue); eval('$nLevel = '.$sConfValue.';');