mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-10 06:58:27 +03:00
add 'view_images' to admin settings ('defaults' section)
This commit is contained in:
parent
2e0077adec
commit
c59d19781f
2 changed files with 6 additions and 2 deletions
|
|
@ -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']);
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue