diff --git a/src/install/assets/install.html.twig b/src/install/assets/install.html.twig
index cb156f6ee..ed7a89f03 100644
--- a/src/install/assets/install.html.twig
+++ b/src/install/assets/install.html.twig
@@ -14,7 +14,6 @@
FOSSBilling stores data in a SQL database. You should already have an existing database before this step. If you do not have a database prepared, you should do that now.
The installer will create all the required tables in your database after correct connection details are provided.
-
NOTE: Please make sure your database name does not include a hyphen '-' as this will create an error.
How to create a database?
Depending on your hosting provider a database can be created in different ways.
Best way is to check the documentation available with your webhosting account. You can contact their support if you really get stuck.
@@ -40,8 +39,7 @@
+
Database hostname:
@@ -181,10 +179,10 @@
-
+
-
+
Administrator name:
@@ -193,7 +191,7 @@
-
+
E-mail:
@@ -201,7 +199,7 @@
-
+
Password:
@@ -256,7 +254,7 @@ $(function() {
errorSteps:[], // array of step numbers to highlighting as error steps
labelNext:'Next', // label for Next button
labelPrevious:'Previous', // label for Previous button
- labelFinish:'Finish', // label for Finish button
+ labelFinish:'Finish', // label for Finish button
// Events
onLeaveStep: function(o, c){ if(c.fromStep < c.toStep) { return validateSteps(c.fromStep); } else { return true; } }, // triggers when leaving a step
onShowStep: function(o, c){ return showStep(c.toStep); }, // triggers when showing a step
@@ -279,12 +277,12 @@ $(function() {
//$('.leftNav').css('width', '980px');
return false;
}
-
+
function showStep(stepnumber){
$('.step').hide();
$('.step.step-'+stepnumber).fadeIn();
}
-
+
function validateSteps(stepnumber){
var url = '{{constant("BB_URL_INSTALL")}}install.php?a=';
var data = $('#installer').serialize();
@@ -296,12 +294,12 @@ $(function() {
return false;
}
}
-
+
if(stepnumber == 2){
if(isEmpty('db_host')) return false;
if(isEmpty('db_name')) return false;
if(isEmpty('db_user')) return false;
-
+
$.ajax({
async: false,
type: "POST",
@@ -316,7 +314,7 @@ $(function() {
});
return ok;
}
-
+
if(stepnumber == 3){
if(isEmpty('admin_name')) return false;
if(isEmpty('admin_email')) return false;
@@ -343,7 +341,7 @@ $(function() {
}
return true;
}
-
+
function isEmpty(id)
{
if(!$('#'+id).val()) {
@@ -354,6 +352,6 @@ $(function() {
return false;
}
}
-
+
{% endblock %}
diff --git a/src/install/install.php b/src/install/install.php
index 1e6b57c8a..e17315aae 100644
--- a/src/install/install.php
+++ b/src/install/install.php
@@ -273,7 +273,7 @@ final class Box_Installer
error_log($e->getMessage());
}
- $pdo->query("USE $db;");
+ $pdo->query("USE `$db`;");
return $pdo;
}