Deduplicate constant
This commit is contained in:
parent
1694f21387
commit
ab69a22606
|
@ -22,6 +22,9 @@
|
|||
|
||||
namespace OC;
|
||||
|
||||
|
||||
use OCP\IConfig;
|
||||
|
||||
/**
|
||||
* Class which provides access to the system config values stored in config.php
|
||||
* Internal class for bootstrap only.
|
||||
|
@ -41,8 +44,6 @@ class SystemConfig {
|
|||
'objectstore' => ['arguments' => ['password' => true]],
|
||||
];
|
||||
|
||||
const SENSITIVE_VALUE = '***REMOVED SENSITIVE VALUE***';
|
||||
|
||||
/**
|
||||
* Lists all available config keys
|
||||
* @return array an array of key names
|
||||
|
@ -115,7 +116,7 @@ class SystemConfig {
|
|||
*/
|
||||
protected function removeSensitiveValue($keysToRemove, $value) {
|
||||
if ($keysToRemove === true) {
|
||||
return self::SENSITIVE_VALUE;
|
||||
return IConfig::SENSITIVE_VALUE;
|
||||
}
|
||||
|
||||
if (is_array($value)) {
|
||||
|
|
Loading…
Reference in New Issue