SF.net SVN: postfixadmin:[1659] trunk/model/Config.php
Brought to you by:
christian_boltz,
gingerdog
|
From: <chr...@us...> - 2014-03-18 21:57:49
|
Revision: 1659
http://sourceforge.net/p/postfixadmin/code/1659
Author: christian_boltz
Date: 2014-03-18 21:57:47 +0000 (Tue, 18 Mar 2014)
Log Message:
-----------
Config.php:
- do not error_log() 'undefined config option' for deprecated options
Modified Paths:
--------------
trunk/model/Config.php
Modified: trunk/model/Config.php
===================================================================
--- trunk/model/Config.php 2014-03-16 21:52:26 UTC (rev 1658)
+++ trunk/model/Config.php 2014-03-18 21:57:47 UTC (rev 1659)
@@ -7,6 +7,11 @@
private static $instance = null;
+ # do not error_log() 'undefined config option' for deprecated options
+ private static $deprecated_options = array(
+ 'min_password_length',
+ );
+
/**
* Return a singleton instance of Configure.
*
@@ -102,7 +107,10 @@
break;
}
- error_log('Config::read(): attempt to read undefined config option "' . join('.', $name) . '", returning null');
+ if ( !in_array(join('.', $name), self::$deprecated_options) ) {
+ error_log('Config::read(): attempt to read undefined config option "' . join('.', $name) . '", returning null');
+ }
+
return null;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|