human friendly name for bundles (#1491)
This commit is contained in:
@@ -71,6 +71,7 @@ class PluginManager
|
||||
{
|
||||
$plugin = new Plugin();
|
||||
$plugin
|
||||
->setId($bundle->getName())
|
||||
->setName($bundle->getName())
|
||||
->setPath($bundle->getPath())
|
||||
->setMetadata(new PluginMetadata())
|
||||
@@ -100,6 +101,10 @@ class PluginManager
|
||||
|
||||
$homepage = $json['homepage'] ?? Constants::HOMEPAGE . '/store/';
|
||||
|
||||
if (array_key_exists('name', $json['extra']['kimai'])) {
|
||||
$plugin->setName($json['extra']['kimai']['name']);
|
||||
}
|
||||
|
||||
$plugin
|
||||
->getMetadata()
|
||||
->setHomepage($homepage)
|
||||
|
||||
Reference in New Issue
Block a user