mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +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
|
return $this->oPluginManager
|
||||||
? $this->oPluginManager->Actions()->GetActionParam($sKey, $mDefault)
|
? $this->oPluginManager->Actions()->GetActionParam($sKey, $mDefault)
|
||||||
: '';
|
: $mDefault;
|
||||||
}
|
}
|
||||||
|
|
||||||
final public function getUserSettings() : array
|
final public function getUserSettings() : array
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,9 @@ class Manager
|
||||||
if ($sClassName) {
|
if ($sClassName) {
|
||||||
$aList[] = array(
|
$aList[] = array(
|
||||||
$sName,
|
$sName,
|
||||||
$sClassName::VERSION
|
$sClassName::VERSION,
|
||||||
|
$sClassName::NAME,
|
||||||
|
$sClassName::DESCRIPTION
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -201,13 +201,13 @@ abstract class Repository
|
||||||
\array_push($aList, array(
|
\array_push($aList, array(
|
||||||
'type' => 'plugin',
|
'type' => 'plugin',
|
||||||
'id' => $aItem[0],
|
'id' => $aItem[0],
|
||||||
'name' => $aItem[0],
|
'name' => $aItem[2],
|
||||||
'installed' => $aItem[1],
|
'installed' => $aItem[1],
|
||||||
'enabled' => \in_array(\strtolower($aItem[0]), $aEnabledPlugins),
|
'enabled' => \in_array(\strtolower($aItem[0]), $aEnabledPlugins),
|
||||||
'version' => '',
|
'version' => '',
|
||||||
'file' => '',
|
'file' => '',
|
||||||
'release' => '',
|
'release' => '',
|
||||||
'desc' => '',
|
'desc' => $aItem[3],
|
||||||
'canBeDeleted' => true,
|
'canBeDeleted' => true,
|
||||||
'canBeUpdated' => false
|
'canBeUpdated' => false
|
||||||
));
|
));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue