Deduplicate constant

This commit is contained in:
Joas Schilling 2015-09-25 13:17:23 +02:00
parent 1694f21387
commit ab69a22606
1 changed files with 4 additions and 3 deletions

View File

@ -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)) {