Merge pull request #2915 from Kondou-ger/handle_empty_datafolder_better

Handle empty datafolder better.
remotes/origin/stable6
Bart Visscher 12 years ago
commit f3c06ae4e4
  1. 1
      core/templates/installation.php
  2. 2
      lib/setup.php

@ -63,6 +63,7 @@
<div id="datadirContent">
<label for="directory"><?php p($l->t( 'Data folder' )); ?></label>
<input type="text" name="directory" id="directory"
placeholder="<?php p(OC::$SERVERROOT."/data"); ?>"
value="<?php p(OC_Helper::init_var('directory', $_['directory'])); ?>" />
</div>
</fieldset>

@ -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

Loading…
Cancel
Save