OC_ -> NC_

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2017-03-20 21:29:55 -06:00
parent 695a17804e
commit 0fcb37adcb
No known key found for this signature in database
GPG key ID: 9CE5ED29E7FCD38A
2 changed files with 3 additions and 3 deletions

View file

@ -40,7 +40,7 @@ namespace OC;
*/
class Config {
const ENV_PREFIX = 'OC_';
const ENV_PREFIX = 'NC_';
/** @var array Associative array ($key => $value) */
protected $cache = array();
@ -76,7 +76,7 @@ class Config {
/**
* Returns a config value
*
* gets its value from an `OC_` prefixed environment variable
* gets its value from an `NC_` prefixed environment variable
* if it doesn't exist from config.php
* if this doesn't exist either, it will return the given `$default`
*

View file

@ -50,7 +50,7 @@ class ConfigTest extends TestCase {
public function testGetValueReturnsEnvironmentValueIfSet() {
$this->assertEquals('bar', $this->config->getValue('foo'));
putenv('OC_foo=baz');
putenv('NC_foo=baz');
$this->assertEquals('baz', $this->config->getValue('foo'));
}