mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-29 10:49:22 +02:00
Plugin name is required, version is optional
This commit is contained in:
parent
6a0356aa0f
commit
e6f05a2731
@ -411,20 +411,13 @@ class Plugins {
|
|||||||
$continue = true;
|
$continue = true;
|
||||||
|
|
||||||
if(!isset($plugin_json['name']) || empty(trim($plugin_json['name']))) {
|
if(!isset($plugin_json['name']) || empty(trim($plugin_json['name']))) {
|
||||||
self::$warnings[] = 'Plugin "name" tag is not set.';
|
self::$error = 'Plugin "name" tag is not set.';
|
||||||
}
|
return false;
|
||||||
if(!isset($plugin_json['description']) || empty(trim($plugin_json['description']))) {
|
|
||||||
self::$warnings[] = 'Plugin "description" tag is not set.';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isset($plugin_json['version']) || empty(trim($plugin_json['version']))) {
|
if(!isset($plugin_json['version']) || empty(trim($plugin_json['version']))) {
|
||||||
self::$warnings[] = 'Plugin "version" tag is not set.';
|
self::$warnings[] = 'Plugin "version" tag is not set.';
|
||||||
}
|
}
|
||||||
if(!isset($plugin_json['author']) || empty(trim($plugin_json['author']))) {
|
|
||||||
self::$warnings[] = 'Plugin "author" tag is not set.';
|
|
||||||
}
|
|
||||||
if(!isset($plugin_json['contact']) || empty(trim($plugin_json['contact']))) {
|
|
||||||
self::$warnings[] = 'Plugin "contact" tag is not set.';
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($plugin_json['require'])) {
|
if(isset($plugin_json['require'])) {
|
||||||
$require = $plugin_json['require'];
|
$require = $plugin_json['require'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user