mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Add default vacation notice message to vacation notice text if there is no custom message
This commit is contained in:
parent
4471a45147
commit
c5ac80225b
@ -49,6 +49,13 @@ class mail_sieve
|
||||
*/
|
||||
var $is_admin_vac = false;
|
||||
|
||||
/**
|
||||
* siteConfigs
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
var $mailConfig = array();
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
@ -56,6 +63,7 @@ class mail_sieve
|
||||
{
|
||||
$this->displayCharset = translation::charset();
|
||||
$this->mail_admin = isset($GLOBALS['egw_info']['user']['apps']['emailadmin']);
|
||||
$this->mailConfig = config::read('mail');
|
||||
|
||||
$acc_id = isset($_GET['acc_id']) ? (int)$_GET['acc_id'] : egw_cache::getSession(__CLASS__, 'acc_id');
|
||||
if ($acc_id > 0)
|
||||
@ -527,6 +535,7 @@ class mail_sieve
|
||||
{
|
||||
$content['forwards'] = '';
|
||||
}
|
||||
if (empty($vacation['text']) && $this->mailConfig['default_vacation_text']) $content['text'] = $this->mailConfig['default_vacation_text'];
|
||||
//Set default value for days new entry
|
||||
if (empty($content['days']))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user