summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorEric Masseran <rico.masseran@gmail.com>2017-10-28 00:54:25 +0200
committerMorris Jobke <hey@morrisjobke.de>2018-06-26 09:36:17 +0200
commita34f70ce0a6732554120a8e356030f32dc3b82e6 (patch)
tree78b8c5412f40752c571540b1de4e8b0b7ffe9b27 /lib/private/legacy
parentf148e3fb2936f079074c02ba474ebe8202354367 (diff)
downloadnextcloud-server-a34f70ce0a6732554120a8e356030f32dc3b82e6.tar.gz
nextcloud-server-a34f70ce0a6732554120a8e356030f32dc3b82e6.zip
Change status code when config is write protected
Add hint msg, you can make config file read only If the config.php is not writable, print an error message: #6893 - set config writable - or set option to keep it read only Signed-off-by: Eric Masseran <rico.masseran@gmail.com>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r--lib/private/legacy/util.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php
index 356d336f687..ab595d885cb 100644
--- a/lib/private/legacy/util.php
+++ b/lib/private/legacy/util.php
@@ -745,7 +745,9 @@ class OC_Util {
$errors[] = array(
'error' => $l->t('Cannot write into "config" directory'),
'hint' => $l->t('This can usually be fixed by giving the webserver write access to the config directory. See %s',
- [$urlGenerator->linkToDocs('admin-dir_permissions')])
+ [ $urlGenerator->linkToDocs('admin-dir_permissions') ]) . '. '
+ . $l->t('Or, if you prefer to keep config.php file read only, set the option "config_is_read_only" to true in it. See %s',
+ [ $urlGenerator->linkToDocs('admin-config') ] )
);
}
}