diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-12-02 15:56:59 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-12-02 15:56:59 +0100 |
commit | 37ecde065b8826098543dc4544732239c7a4cabf (patch) | |
tree | dce033e2d44a82ad0ccb91339e6df8cccb870f19 /lib/private/setup.php | |
parent | c35a450cb1c0df0f77dea4c69182a381543b679a (diff) | |
download | nextcloud-server-37ecde065b8826098543dc4544732239c7a4cabf.tar.gz nextcloud-server-37ecde065b8826098543dc4544732239c7a4cabf.zip |
Replace old config code with usage of proper APIs
Diffstat (limited to 'lib/private/setup.php')
-rw-r--r-- | lib/private/setup.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/setup.php b/lib/private/setup.php index 2c959622cc7..814d78679e2 100644 --- a/lib/private/setup.php +++ b/lib/private/setup.php @@ -463,7 +463,9 @@ class Setup { $content.= "</ifModule>\n\n"; $content.= "# section for Apache 2.2 and 2.4\n"; $content.= "IndexIgnore *\n"; - file_put_contents(\OC_Config::getValue('datadirectory', \OC::$SERVERROOT.'/data').'/.htaccess', $content); - file_put_contents(\OC_Config::getValue('datadirectory', \OC::$SERVERROOT.'/data').'/index.html', ''); + + $baseDir = \OC::$server->getConfig()->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data'); + file_put_contents($baseDir . '/.htaccess', $content); + file_put_contents($baseDir . '/index.html', ''); } } |