1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-24 09:30:34 +01:00

[ticket/15135] Parse language files in acp_extensions instead of md manager

PHPBB3-15135
This commit is contained in:
Marc Alexander 2017-03-19 22:37:19 +01:00
parent bd34b2301e
commit 6f1de69bbe
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995
2 changed files with 5 additions and 4 deletions
phpBB
includes/acp
phpbb/extension

@ -162,7 +162,8 @@ class acp_extensions
}
catch (\phpbb\extension\exception $e)
{
trigger_error($e . adm_back_link($this->u_action), E_USER_WARNING);
$message = call_user_func_array(array($this->user, 'lang'), array_merge(array($e->getMessage()), $e->get_parameters()));
trigger_error($message, E_USER_WARNING);
}
$extension = $phpbb_extension_manager->get_extension($ext_name);

@ -278,7 +278,7 @@ class metadata_manager
{
if (substr_count($this->ext_name, '/') !== 1 || $this->ext_name != $this->get_metadata('name'))
{
throw new \phpbb\extension\exception($this->user->lang('EXTENSION_DIR_INVALID'));
throw new \phpbb\extension\exception('EXTENSION_DIR_INVALID');
}
return true;
@ -295,7 +295,7 @@ class metadata_manager
{
if (!isset($this->metadata['extra']['soft-require']['phpbb/phpbb']))
{
throw new \phpbb\extension\exception($this->user->lang('META_FIELD_NOT_SET', 'soft-require'));
throw new \phpbb\extension\exception('META_FIELD_NOT_SET', 'soft-require');
}
return true;
@ -311,7 +311,7 @@ class metadata_manager
{
if (!isset($this->metadata['require']['php']))
{
throw new \phpbb\extension\exception($this->user->lang('META_FIELD_NOT_SET', 'require php'));
throw new \phpbb\extension\exception('META_FIELD_NOT_SET', 'require php');
}
return true;