From e2337a354cb641fb57240f232e0b6ea44112242b Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Wed, 8 Apr 2020 13:35:49 +0200 Subject: [PATCH] Corrected the SQL file paths during installation. --- application/controllers/Installation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/Installation.php b/application/controllers/Installation.php index 50b5fdf1..20ec62e1 100644 --- a/application/controllers/Installation.php +++ b/application/controllers/Installation.php @@ -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)