mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge pull request #4651 from marc1706/ticket/15011
[ticket/15011] Output meaningful errors when validating all metadata * marc1706/ticket/15011: [ticket/15011] Output meaningful errors when validating all metadata
This commit is contained in:
commit
0f640ab7af
1 changed files with 12 additions and 2 deletions
|
@ -230,9 +230,19 @@ class metadata_manager
|
||||||
case 'all':
|
case 'all':
|
||||||
$this->validate('display');
|
$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;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue