Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-06-05 19:51:41 +0400
committerBart Visscher <bartv@thisnet.nl>2012-06-20 01:11:14 +0400
commit98bc9160166e931ae1eec840277edbabaf9e40b7 (patch)
tree94382a4b56d53a4cc135af9ed6637249525a6165 /lib
parent637f8398ba85870eac5cb0b03a67ef32b494336f (diff)
Make check for writable apps dir configurable
Conflicts: config/config.sample.php
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index c47a7e5d84c..1dd11e7b5c8 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -29,7 +29,7 @@ class OC_Util {
}
// Check if apps folder is writable.
- if(!is_writable(OC::$SERVERROOT."/apps/")) {
+ if(OC_Config::getValue('writable_appsdir', true) && !is_writable(OC::$SERVERROOT."/apps/")) {
$tmpl = new OC_Template( '', 'error', 'guest' );
$tmpl->assign('errors',array(1=>array('error'=>"Can't write into apps directory 'apps'",'hint'=>"You can usually fix this by giving the webserver user write access to the config directory in owncloud")));
$tmpl->printPage();