mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-22 22:52:35 +03:00
fetching the installation sql file without the base_url
This commit is contained in:
parent
67d8c4cddd
commit
6fd64a0a16
1 changed files with 1 additions and 1 deletions
|
@ -623,7 +623,7 @@ class Appointments extends CI_Controller {
|
|||
public function ajax_install() {
|
||||
try {
|
||||
// Create E!A database structure.
|
||||
$file_contents = file_get_contents($this->config->item('base_url') . '/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) {
|
||||
|
|
Loading…
Reference in a new issue