summaryrefslogtreecommitdiffstats
path: root/lib/config.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-06-27 22:50:28 +0200
committerBart Visscher <bartv@thisnet.nl>2013-06-27 22:50:28 +0200
commit12976fb2e1f6a4d6a054ba2b620f0e7707ce2c69 (patch)
treeab91be2d3550701b55a299e4f0867512f6b7ee63 /lib/config.php
parent194b61b4c507e58eab0750ab40ed6eb6f085c06a (diff)
downloadnextcloud-server-12976fb2e1f6a4d6a054ba2b620f0e7707ce2c69.tar.gz
nextcloud-server-12976fb2e1f6a4d6a054ba2b620f0e7707ce2c69.zip
Set debugMode after reading the config file
Diffstat (limited to 'lib/config.php')
-rw-r--r--lib/config.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/config.php b/lib/config.php
index adf70ac841a..afd74c56b40 100644
--- a/lib/config.php
+++ b/lib/config.php
@@ -49,12 +49,17 @@ class Config {
protected $debugMode;
- public function __construct($configDir, $debugMode) {
+ public function __construct($configDir) {
$this->configDir = $configDir;
- $this->debugMode = $debugMode;
$this->configFilename = $this->configDir.'config.php';
$this->readData();
+ $this->setDebugMode(defined('DEBUG') && DEBUG);
}
+
+ public function setDebugMode($enable) {
+ $this->debugMode = $enable;
+ }
+
/**
* @brief Lists all available config keys
* @return array with key names