summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-04-13 15:56:01 +0200
committerkondou <kondou@ts.unde.re>2013-04-13 15:56:01 +0200
commitd759dca2038c669a59168a168a1e047392a157b4 (patch)
tree80b838ae39ee9324943b707afe9bb144959104ec /lib
parentf9e7d4ce2525cc4a101e36ae4aec41aabd69a902 (diff)
downloadnextcloud-server-d759dca2038c669a59168a168a1e047392a157b4.tar.gz
nextcloud-server-d759dca2038c669a59168a168a1e047392a157b4.zip
Handle empty datafolder better.
If datafolder is erased, the default value will be shown as a placeholder. If installation is submitted without a datafolder the default value will be used.
Diffstat (limited to 'lib')
-rw-r--r--lib/setup.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/setup.php b/lib/setup.php
index 7082f0b2afd..769fae11656 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -37,7 +37,7 @@ class OC_Setup {
$error[] = $l->t('Set an admin password.');
}
if(empty($options['directory'])) {
- $error[] = $l->t('Specify a data folder.');
+ $options['directory'] = OC::$SERVERROOT."/data";
}
if($dbtype == 'mysql' or $dbtype == 'pgsql' or $dbtype == 'oci' or $dbtype == 'mssql') { //mysql and postgresql needs more config options