diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-09-25 18:34:50 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-10-04 18:11:02 +0200 |
commit | ce9436c0518d8ce522646dde33dbac141cc35c46 (patch) | |
tree | b0cf0f189bf9ee4bcc65be594e9c1d393bf85703 /lib/private/config.php | |
parent | 9f777fba988422366732a3f128e2fb73ffddfbb4 (diff) | |
download | nextcloud-server-ce9436c0518d8ce522646dde33dbac141cc35c46.tar.gz nextcloud-server-ce9436c0518d8ce522646dde33dbac141cc35c46.zip |
OC_Defaults is only used in error reporting
Diffstat (limited to 'lib/private/config.php')
-rw-r--r-- | lib/private/config.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/config.php b/lib/private/config.php index e773e6e2eb0..72423137fa3 100644 --- a/lib/private/config.php +++ b/lib/private/config.php @@ -160,7 +160,6 @@ class Config { */ private function writeData() { // Create a php file ... - $defaults = new \OC_Defaults; $content = "<?php\n"; if ($this->debugMode) { $content .= "define('DEBUG',true);\n"; @@ -172,6 +171,7 @@ class Config { // Write the file $result = @file_put_contents($this->configFilename, $content); if (!$result) { + $defaults = new \OC_Defaults; $url = $defaults->getDocBaseUrl() . '/server/5.0/admin_manual/installation/installation_source.html#set-the-directory-permissions'; throw new HintException( "Can't write into config directory!", |