mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-20 03:36:20 +02:00
Config.php:
- do not error_log() 'undefined config option' for deprecated options git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1659 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
parent
8e04104b20
commit
2289096ccc
@ -7,6 +7,11 @@ final class Config {
|
||||
|
||||
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 @@ final class Config {
|
||||
break;
|
||||
}
|
||||
|
||||
if ( !in_array(join('.', $name), self::$deprecated_options) ) {
|
||||
error_log('Config::read(): attempt to read undefined config option "' . join('.', $name) . '", returning null');
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user