We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c4ee378 + 0f640ab commit 43ba678Copy full SHA for 43ba678
1 file changed
phpBB/phpbb/extension/metadata_manager.php
@@ -214,9 +214,19 @@ public function validate($name = 'display')
214
case 'all':
215
$this->validate('display');
216
217
- if (!$this->validate_enable())
+ if (!$this->validate_dir())
218
{
219
- throw new \phpbb\extension\exception('META_FIELD_NOT_SET', array($name));
+ throw new \phpbb\extension\exception('EXTENSION_DIR_INVALID');
220
+ }
221
+
222
+ if (!$this->validate_require_phpbb())
223
+ {
224
+ throw new \phpbb\extension\exception('META_FIELD_NOT_SET', array('soft-require'));
225
226
227
+ if (!$this->validate_require_php())
228
229
+ throw new \phpbb\extension\exception('META_FIELD_NOT_SET', array('require php'));
230
}
231
break;
232
0 commit comments