summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/templates/installation.php2
-rw-r--r--lib/setup.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/templates/installation.php b/core/templates/installation.php
index de7ff8c168c..7f2796a4b31 100644
--- a/core/templates/installation.php
+++ b/core/templates/installation.php
@@ -165,7 +165,7 @@
<p class="infield groupbottom">
<label for="dbhost" class="infield" id="dbhostlabel"><?php p($l->t( 'Database host' )); ?></label>
<input type="text" name="dbhost" id="dbhost" placeholder=""
- value="<?php p(OC_Helper::init_var('dbhost', 'localhost')); ?>" />
+ value="<?php p(OC_Helper::init_var('dbhost')); ?>" />
</p>
</fieldset>
diff --git a/lib/setup.php b/lib/setup.php
index 61ef7d22b11..741a1837ccc 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -61,7 +61,7 @@ class OC_Setup {
$error[] = $l->t("%s you may not use dots in the database name", array($dbprettyname));
}
if($dbtype != 'oci' && empty($options['dbhost'])) {
- $error[] = $l->t("%s set the database host.", array($dbprettyname));
+ $options['dbhost'] = 'localhost';
}
}