mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-23 23:22:44 +03:00
Corrected the SQL file paths during installation.
This commit is contained in:
parent
3e991516a1
commit
e2337a354c
1 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ class Installation extends CI_Controller {
|
|||
}
|
||||
|
||||
// Create E!A database structure.
|
||||
$file_contents = file_get_contents(dirname(BASEPATH) . '/assets/sql/structure.sql');
|
||||
$file_contents = file_get_contents(__DIR__ . '/../../assets/sql/structure.sql');
|
||||
$sql_queries = explode(';', $file_contents);
|
||||
array_pop($sql_queries);
|
||||
foreach ($sql_queries as $query)
|
||||
|
@ -83,7 +83,7 @@ class Installation extends CI_Controller {
|
|||
}
|
||||
|
||||
// Insert default E!A entries into the database.
|
||||
$file_contents = file_get_contents(dirname(BASEPATH) . '/assets/sql/data.sql');
|
||||
$file_contents = file_get_contents(__DIR__ . '/../../assets/sql/data.sql');
|
||||
$sql_queries = explode(';', $file_contents);
|
||||
array_pop($sql_queries);
|
||||
foreach ($sql_queries as $query)
|
||||
|
|
Loading…
Reference in a new issue