|
@@ -36,7 +36,7 @@ settings.createConfig = function() {
|
|
|
if (data!==true) {
|
|
|
|
|
|
// Connection failed
|
|
|
- if (data.indexOf('Warning: Connection failed!')!==-1) {
|
|
|
+ if (data==='Warning: Connection failed!') {
|
|
|
|
|
|
basicModal.show({
|
|
|
body: '<p>Unable to connect to host database because access was denied. Double-check your host, username and password and ensure that access from your current location is permitted.</p>',
|
|
@@ -53,7 +53,7 @@ settings.createConfig = function() {
|
|
|
}
|
|
|
|
|
|
// Creation failed
|
|
|
- if (data.indexOf('Warning: Creation failed!')!==-1) {
|
|
|
+ if (data==='Warning: Creation failed!') {
|
|
|
|
|
|
basicModal.show({
|
|
|
body: '<p>Unable to create the database. Double-check your host, username and password and ensure that the specified user has the rights to modify and add content to the database.</p>',
|
|
@@ -70,7 +70,7 @@ settings.createConfig = function() {
|
|
|
}
|
|
|
|
|
|
// Could not create file
|
|
|
- if (data.indexOf('Warning: Could not create file!')!==-1) {
|
|
|
+ if (data==='Warning: Could not create file!') {
|
|
|
|
|
|
basicModal.show({
|
|
|
body: "<p>Unable to save this configuration. Permission denied in <b>'data/'</b>. Please set the read, write and execute rights for others in <b>'data/'</b> and <b>'uploads/'</b>. Take a look at the readme for more information.</p>",
|