summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-09-25 13:17:23 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-09-25 13:17:23 +0200
commitab69a226065d576120d629f857464633fb5d17d9 (patch)
tree560dbf28d2f06b513b4cc17191d5a53934a80645 /lib/private
parent1694f213875797410ae302b20c9155ef39bfb4a7 (diff)
downloadnextcloud-server-ab69a226065d576120d629f857464633fb5d17d9.tar.gz
nextcloud-server-ab69a226065d576120d629f857464633fb5d17d9.zip
Deduplicate constant
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/systemconfig.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/systemconfig.php b/lib/private/systemconfig.php
index 3b7930f2842..94b815aebd7 100644
--- a/lib/private/systemconfig.php
+++ b/lib/private/systemconfig.php
@@ -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)) {