mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
Return plugin name as-is if plugin is unavailable (fix #32)
This commit is contained in:
parent
ac4fb12e42
commit
b23538c47e
@ -438,6 +438,11 @@ class PluginManager
|
|||||||
if (is_string($item)) {
|
if (is_string($item)) {
|
||||||
$plugin = $this->getPlugin($item);
|
$plugin = $this->getPlugin($item);
|
||||||
|
|
||||||
|
// If we cannot read the package of that plugin, just return it as-is.
|
||||||
|
if (is_null($plugin)) {
|
||||||
|
return $item;
|
||||||
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'name' => $item,
|
'name' => $item,
|
||||||
'version' => $plugin->getVersion(),
|
'version' => $plugin->getVersion(),
|
||||||
|
Loading…
Reference in New Issue
Block a user