add 'view_images' to admin settings ('defaults' section)

This commit is contained in:
Sergey Mosin 2023-07-03 23:49:41 -04:00
parent 2e0077adec
commit c59d19781f
2 changed files with 6 additions and 2 deletions

View file

@ -680,7 +680,7 @@ class Actions
'contactsAllowed' => $this->AddressBookProvider($oAccount)->IsActive(),
'ViewHTML' => (bool) $oConfig->Get('defaults', 'view_html', true),
'ViewImages' => 'ask',
'ViewImages' => $oConfig->Get('defaults', 'view_images', 'ask'),
'ViewImagesWhitelist' => '',
'RemoveColors' => (bool) $oConfig->Get('defaults', 'remove_colors', false),
'AllowStyles' => false,
@ -778,7 +778,7 @@ class Actions
$aResult['ViewHTML'] = (bool)$oSettings->GetConf('ViewHTML', $aResult['ViewHTML']);
$show_images = (bool) $oSettings->GetConf('ShowImages', false);
$aResult['ViewImages'] = $oSettings->GetConf('ViewImages', $show_images ? 'always' : 'ask');
$aResult['ViewImages'] = $oSettings->GetConf('ViewImages', $show_images ? 'always' : $aResult['ViewImages']);
$aResult['ViewImagesWhitelist'] = $oSettings->GetConf('ViewImagesWhitelist', '');
$aResult['RemoveColors'] = (bool)$oSettings->GetConf('RemoveColors', $aResult['RemoveColors']);
$aResult['AllowStyles'] = (bool)$oSettings->GetConf('AllowStyles', $aResult['AllowStyles']);

View file

@ -296,6 +296,10 @@ Values:
'autologout' => array(30),
'view_html' => array(true),
'show_images' => array(false),
'view_images' => array('ask', 'View external images:
"ask" - always ask
"match" - whitelist or ask
"always" - show always'),
'contacts_autosave' => array(true),
'mail_use_threads' => array(false),
'allow_draft_autosave' => array(true),