mirror of
https://github.com/slawkens/myaac.git
synced 2026-01-31 10:26:23 +01:00
Show if there is mysql error on import schema
Weird fix, don't know why it didn't worked with query() Patching from 1.x
This commit is contained in:
@@ -37,7 +37,7 @@ if($db->hasTable(TABLE_PREFIX . 'account_actions')) {
|
|||||||
else {
|
else {
|
||||||
// import schema
|
// import schema
|
||||||
try {
|
try {
|
||||||
$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']);
|
$locale['step_database_success_schema'] = str_replace('$PREFIX$', TABLE_PREFIX, $locale['step_database_success_schema']);
|
||||||
success($locale['step_database_success_schema']);
|
success($locale['step_database_success_schema']);
|
||||||
|
|||||||
Reference in New Issue
Block a user