mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-26 22:14:18 +01:00
Show if there is mysql error on import schema
Weird fix, don't know why it didn't worked with query()
This commit is contained in:
@@ -40,7 +40,7 @@ else {
|
||||
$locale['step_database_importing'] = str_replace('$DATABASE_NAME$', config('database_name'), $locale['step_database_importing']);
|
||||
success($locale['step_database_importing']);
|
||||
|
||||
$db->query(file_get_contents(BASE . 'install/includes/schema.sql'));
|
||||
$db->exec(file_get_contents(BASE . 'install/includes/schema.sql'));
|
||||
|
||||
$locale['step_database_success_schema'] = str_replace('$PREFIX$', TABLE_PREFIX, $locale['step_database_success_schema']);
|
||||
success($locale['step_database_success_schema']);
|
||||
|
||||
Reference in New Issue
Block a user