1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-02 23:07:39 +02:00

[feature/migrations] Use getLocalisedMessage() function to get error message

PHPBB3-11318
This commit is contained in:
Nathan Guse
2013-02-15 22:22:13 -06:00
parent 193a3beb8f
commit 872773a218

View File

@@ -114,7 +114,7 @@ class acp_extensions
} }
catch (phpbb_db_migration_exception $e) catch (phpbb_db_migration_exception $e)
{ {
$template->assign_var('MIGRATOR_ERROR', $user->lang($e->getMessage(), $e->getParameters())); $template->assign_var('MIGRATOR_ERROR', $e->getLocalisedMessage($user));
} }
$this->tpl_name = 'acp_ext_enable'; $this->tpl_name = 'acp_ext_enable';
@@ -174,7 +174,7 @@ class acp_extensions
} }
catch (phpbb_db_migration_exception $e) catch (phpbb_db_migration_exception $e)
{ {
$template->assign_var('MIGRATOR_ERROR', $user->lang($e->getMessage(), $e->getParameters())); $template->assign_var('MIGRATOR_ERROR', $e->getLocalisedMessage($user));
} }
$this->tpl_name = 'acp_ext_purge'; $this->tpl_name = 'acp_ext_purge';