Skip to content
Snippets Groups Projects
Commit ce9436c0 authored by Bart Visscher's avatar Bart Visscher
Browse files

OC_Defaults is only used in error reporting

parent 9f777fba
No related branches found
No related tags found
Loading
......@@ -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!",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment