mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-09-27 15:34:45 +08:00
Bugfix: cPanel undefined $_ENV['SNAPPYMAIL_INCLUDE_AS_API']
This commit is contained in:
parent
7c928ee78e
commit
ee27ef29d4
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
// cPanel https://github.com/the-djmaze/snappymail/issues/697
|
||||
if (defined('APP_PLUGINS_PATH') && !empty($_ENV['CPANEL']) && !is_dir(APP_PLUGINS_PATH.'login-remote')) {
|
||||
$asApi = $_ENV['SNAPPYMAIL_INCLUDE_AS_API'];
|
||||
$asApi = !empty($_ENV['SNAPPYMAIL_INCLUDE_AS_API']);
|
||||
$_ENV['SNAPPYMAIL_INCLUDE_AS_API'] = true;
|
||||
|
||||
\SnappyMail\Repository::installPackage('plugin', 'login-remote');
|
||||
|
|
Loading…
Add table
Reference in a new issue