diff options
Diffstat (limited to 'install/ElggInstaller.php')
-rw-r--r-- | install/ElggInstaller.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/install/ElggInstaller.php b/install/ElggInstaller.php index 687a5bcab..192139084 100644 --- a/install/ElggInstaller.php +++ b/install/ElggInstaller.php @@ -1130,7 +1130,11 @@ class ElggInstaller { try { run_sql_script("{$CONFIG->path}engine/schema/mysql.sql"); } catch (Exception $e) { - register_error($e->getMessage()); + $msg = $e->getMessage(); + if (strpos($msg, 'already exists')) { + $msg = elgg_echo('install:error:tables_exist'); + } + register_error($msg); return FALSE; } |