summaryrefslogtreecommitdiffstats
path: root/lib/config.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-07-08 17:59:50 +0200
committerBart Visscher <bartv@thisnet.nl>2013-07-08 17:59:50 +0200
commit52553c64ed59f4a30ad42586abd8e06a8446ecd9 (patch)
tree902e6debac03494ba7c426afa5db96909d3da690 /lib/config.php
parent492a35737c634fee27b0eb9d3ea6425bc6d98396 (diff)
parent02d2e41e04735e91c94864a98c5eed89b6ceb7f7 (diff)
downloadnextcloud-server-52553c64ed59f4a30ad42586abd8e06a8446ecd9.tar.gz
nextcloud-server-52553c64ed59f4a30ad42586abd8e06a8446ecd9.zip
Merge branch 'master' into convert-oc_config
Conflicts: lib/config.php
Diffstat (limited to 'lib/config.php')
-rw-r--r--lib/config.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/config.php b/lib/config.php
index afd74c56b40..c01cb4e152f 100644
--- a/lib/config.php
+++ b/lib/config.php
@@ -156,6 +156,7 @@ class Config {
*/
private function writeData() {
// Create a php file ...
+ $defaults = new OC_Defaults;
$content = "<?php\n";
if ($this->debugMode) {
$content .= "define('DEBUG',true);\n";
@@ -167,10 +168,11 @@ class Config {
// Write the file
$result = @file_put_contents($this->configFilename, $content);
if (!$result) {
+ $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 'config'",
- 'You can usually fix this by giving the webserver user write access'
- .' to the config directory in ownCloud');
+ 'This can usually be fixed by '
+ .'<a href="' . $url . '" target="_blank">giving the webserver write access to the config directory</a>.');
}
// Prevent others not to read the config
@chmod($this->configFilename, 0640);