mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-20 07:30:16 +01:00
[ticket/15011] Output meaningful errors when validating all metadata
PHPBB3-15011
This commit is contained in:
parent
c3b7332ea8
commit
a0bd23b747
@ -230,9 +230,19 @@ class metadata_manager
|
||||
case 'all':
|
||||
$this->validate('display');
|
||||
|
||||
if (!$this->validate_enable())
|
||||
if (!$this->validate_dir())
|
||||
{
|
||||
throw new \phpbb\extension\exception($this->user->lang('META_FIELD_NOT_SET', $name));
|
||||
throw new \phpbb\extension\exception($this->user->lang('EXTENSION_DIR_INVALID'));
|
||||
}
|
||||
|
||||
if (!$this->validate_require_phpbb())
|
||||
{
|
||||
throw new \phpbb\extension\exception($this->user->lang('META_FIELD_NOT_SET', 'soft-require'));
|
||||
}
|
||||
|
||||
if (!$this->validate_require_php())
|
||||
{
|
||||
throw new \phpbb\extension\exception($this->user->lang('META_FIELD_NOT_SET', 'require php'));
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user