mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
[ticket/15135] Correctly pass exception arguments and add back link again
PHPBB3-15135
This commit is contained in:
@@ -295,7 +295,7 @@ class metadata_manager
|
||||
{
|
||||
if (!isset($this->metadata['extra']['soft-require']['phpbb/phpbb']))
|
||||
{
|
||||
throw new \phpbb\extension\exception('META_FIELD_NOT_SET', 'soft-require');
|
||||
throw new \phpbb\extension\exception('META_FIELD_NOT_SET', array('soft-require'));
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -311,7 +311,7 @@ class metadata_manager
|
||||
{
|
||||
if (!isset($this->metadata['require']['php']))
|
||||
{
|
||||
throw new \phpbb\extension\exception('META_FIELD_NOT_SET', 'require php');
|
||||
throw new \phpbb\extension\exception('META_FIELD_NOT_SET', array('require php'));
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user