Improved Plugins handling

This commit is contained in:
the-djmaze 2022-05-18 22:52:05 +02:00
parent d93a31dda0
commit f2aedd42b7
3 changed files with 6 additions and 4 deletions

View file

@ -260,7 +260,7 @@ abstract class AbstractPlugin
{
return $this->oPluginManager
? $this->oPluginManager->Actions()->GetActionParam($sKey, $mDefault)
: '';
: $mDefault;
}
final public function getUserSettings() : array

View file

@ -109,7 +109,9 @@ class Manager
if ($sClassName) {
$aList[] = array(
$sName,
$sClassName::VERSION
$sClassName::VERSION,
$sClassName::NAME,
$sClassName::DESCRIPTION
);
}
}

View file

@ -201,13 +201,13 @@ abstract class Repository
\array_push($aList, array(
'type' => 'plugin',
'id' => $aItem[0],
'name' => $aItem[0],
'name' => $aItem[2],
'installed' => $aItem[1],
'enabled' => \in_array(\strtolower($aItem[0]), $aEnabledPlugins),
'version' => '',
'file' => '',
'release' => '',
'desc' => '',
'desc' => $aItem[3],
'canBeDeleted' => true,
'canBeUpdated' => false
));