mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
Improved Plugins handling
This commit is contained in:
parent
d93a31dda0
commit
f2aedd42b7
3 changed files with 6 additions and 4 deletions
|
|
@ -260,7 +260,7 @@ abstract class AbstractPlugin
|
|||
{
|
||||
return $this->oPluginManager
|
||||
? $this->oPluginManager->Actions()->GetActionParam($sKey, $mDefault)
|
||||
: '';
|
||||
: $mDefault;
|
||||
}
|
||||
|
||||
final public function getUserSettings() : array
|
||||
|
|
|
|||
|
|
@ -109,7 +109,9 @@ class Manager
|
|||
if ($sClassName) {
|
||||
$aList[] = array(
|
||||
$sName,
|
||||
$sClassName::VERSION
|
||||
$sClassName::VERSION,
|
||||
$sClassName::NAME,
|
||||
$sClassName::DESCRIPTION
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue