This commit is contained in:
Alex Tselegidis 2015-11-05 20:30:54 +01:00
parent 7feca74d25
commit 9d706d7125
2 changed files with 7 additions and 9 deletions

View file

@ -66,7 +66,7 @@ class Installation extends CI_Controller {
} }
// Create E!A database structure. // Create E!A database structure.
$file_contents = file_get_contents(BASEPATH . 'assets/sql/structure.sql'); $file_contents = file_get_contents(dirname(BASEPATH) . '/assets/sql/structure.sql');
$sql_queries = explode(';', $file_contents); $sql_queries = explode(';', $file_contents);
array_pop($sql_queries); array_pop($sql_queries);
foreach($sql_queries as $query) { foreach($sql_queries as $query) {

View file

@ -47,14 +47,12 @@ $(document).ready(function() {
if (!GeneralFunctions.handleAjaxExceptions(response)) return; if (!GeneralFunctions.handleAjaxExceptions(response)) return;
if (response == AJAX_SUCCESS) { $('.alert').text('Easy!Appointments has been successfully installed!');
$('.alert').text('Easy!Appointments has been successfully installed!'); $('.alert').addClass('alert-success');
$('.alert').addClass('alert-success'); $('.alert').show();
$('.alert').show(); setTimeout(function() {
setTimeout(function() { window.location.href = GlobalVariables.baseUrl + '/index.php/backend';
window.location.href = GlobalVariables.baseUrl + '/index.php/backend'; }, 1000);
}, 1000);
}
}, },
error: function(jqXHR, textStatus, errorThrown) { error: function(jqXHR, textStatus, errorThrown) {
// Treat the error the same way as php exceptions. // Treat the error the same way as php exceptions.