mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-08 07:48:02 +08:00
Automatic update plugins at upgrade?
This commit is contained in:
parent
3a96823506
commit
4805a377c4
1 changed files with 12 additions and 0 deletions
|
@ -166,4 +166,16 @@ if (defined('APP_VERSION'))
|
|||
file_put_contents($sFile, json_encode($config, JSON_PRETTY_PRINT));
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
// Update plugins
|
||||
$asApi = !empty($_ENV['SNAPPYMAIL_INCLUDE_AS_API']);
|
||||
$_ENV['SNAPPYMAIL_INCLUDE_AS_API'] = true;
|
||||
$aList = \SnappyMail\Repository::getEnabledPackagesNames();
|
||||
foreach ($aList as $sId) {
|
||||
\SnappyMail\Repository::installPackage('plugin', $sId);
|
||||
}
|
||||
$_ENV['SNAPPYMAIL_INCLUDE_AS_API'] = $asApi;
|
||||
*/
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue