Small cleanups

This commit is contained in:
the-djmaze 2022-05-11 23:14:12 +02:00
parent e205a0d3e0
commit b926a26dc8
3 changed files with 14 additions and 13 deletions

View file

@ -5,6 +5,7 @@ class LdapContactsSuggestionsPlugin extends \RainLoop\Plugins\AbstractPlugin
const const
NAME = 'Contacts suggestions (LDAP)', NAME = 'Contacts suggestions (LDAP)',
VERSION = '2.9', VERSION = '2.9',
RELEASE = '2022-05-05',
CATEGORY = 'Security', CATEGORY = 'Security',
DESCRIPTION = 'Get contacts suggestions from LDAP.', DESCRIPTION = 'Get contacts suggestions from LDAP.',
REQUIRED = '2.9.1'; REQUIRED = '2.9.1';

View file

@ -127,7 +127,7 @@ class Application extends \RainLoop\Config\AbstractConfig
'title' => array('SnappyMail Webmail', 'Text displayed as page title'), 'title' => array('SnappyMail Webmail', 'Text displayed as page title'),
'loading_description' => array('SnappyMail', 'Text displayed on startup'), 'loading_description' => array('SnappyMail', 'Text displayed on startup'),
'favicon_url' => array('', ''), 'favicon_url' => array(''),
'app_path' => array(''), 'app_path' => array(''),
'theme' => array('Default', 'Theme used by default'), 'theme' => array('Default', 'Theme used by default'),
@ -138,8 +138,8 @@ class Application extends \RainLoop\Config\AbstractConfig
'language_admin' => array('en', 'Admin Panel interface language'), 'language_admin' => array('en', 'Admin Panel interface language'),
'allow_languages_on_settings' => array(true, 'Allow language selection on settings screen'), 'allow_languages_on_settings' => array(true, 'Allow language selection on settings screen'),
'allow_additional_accounts' => array(true, ''), 'allow_additional_accounts' => array(true),
'allow_additional_identities' => array(true, ''), 'allow_additional_identities' => array(true),
'messages_per_page' => array(20, 'Number of messages displayed on page by default'), 'messages_per_page' => array(20, 'Number of messages displayed on page by default'),
'message_read_delay' => array(5, 'Mark message read after N seconds'), 'message_read_delay' => array(5, 'Mark message read after N seconds'),
@ -149,7 +149,7 @@ class Application extends \RainLoop\Config\AbstractConfig
), ),
'interface' => array( 'interface' => array(
'show_attachment_thumbnail' => array(true, ''), 'show_attachment_thumbnail' => array(true),
'new_move_to_folder_button' => array(true) 'new_move_to_folder_button' => array(true)
), ),
@ -157,10 +157,10 @@ class Application extends \RainLoop\Config\AbstractConfig
'enable' => array(false, 'Enable contacts'), 'enable' => array(false, 'Enable contacts'),
'allow_sync' => array(false), 'allow_sync' => array(false),
'sync_interval' => array(20), 'sync_interval' => array(20),
'type' => array('sqlite', ''), 'type' => array('sqlite'),
'pdo_dsn' => array('host=127.0.0.1;port=3306;dbname=snappymail', ''), 'pdo_dsn' => array('host=127.0.0.1;port=3306;dbname=snappymail'),
'pdo_user' => array('root', ''), 'pdo_user' => array('root'),
'pdo_password' => array('', ''), 'pdo_password' => array(''),
'suggestions_limit' => array(30) 'suggestions_limit' => array(30)
), ),
@ -218,17 +218,17 @@ class Application extends \RainLoop\Config\AbstractConfig
'login' => array( 'login' => array(
'default_domain' => array('', ''), 'default_domain' => array(''),
'allow_languages_on_login' => array(true, 'allow_languages_on_login' => array(true,
'Allow language selection on webmail login screen'), 'Allow language selection on webmail login screen'),
'determine_user_language' => array(true, ''), 'determine_user_language' => array(true),
'determine_user_domain' => array(false, ''), 'determine_user_domain' => array(false),
'hide_submit_button' => array(false), 'hide_submit_button' => array(false),
'login_lowercase' => array(true, ''), 'login_lowercase' => array(true),
'sign_me_auto' => array(\RainLoop\Enumerations\SignMeType::DEFAULT_OFF, 'sign_me_auto' => array(\RainLoop\Enumerations\SignMeType::DEFAULT_OFF,
'This option allows webmail to remember the logged in user 'This option allows webmail to remember the logged in user

View file

@ -172,7 +172,7 @@ class ServiceActions
{ {
\SnappyMail\Log::warning('SERVICE', $oException->getMessage()); \SnappyMail\Log::warning('SERVICE', $oException->getMessage());
if ($e = $oException->getPrevious()) { if ($e = $oException->getPrevious()) {
\SnappyMail\Log::warning('SERVICE', "\t{$e->getMessage()} @ {$e->getFile()}#{$e->getLine()}"); \SnappyMail\Log::warning('SERVICE', "- {$e->getMessage()} @ {$e->getFile()}#{$e->getLine()}");
} }
$aResponseItem = $this->oActions->ExceptionResponse( $aResponseItem = $this->oActions->ExceptionResponse(