forked from extern/egroupware
Fix translation and appIcon issue in mail integration
This commit is contained in:
parent
b211d7c4ab
commit
113d415a4e
@ -76,6 +76,7 @@ class mail_integration {
|
|||||||
$time = time();
|
$time = time();
|
||||||
$_date = egw_time::server2user($time->now,'ts');
|
$_date = egw_time::server2user($time->now,'ts');
|
||||||
}
|
}
|
||||||
|
$GLOBALS['egw_info']['flags']['currentapp'] = $app;
|
||||||
|
|
||||||
// Integrate not yet saved mail
|
// Integrate not yet saved mail
|
||||||
if (empty($_GET['rowid']) && $_to_emailAddress && $app)
|
if (empty($_GET['rowid']) && $_to_emailAddress && $app)
|
||||||
@ -83,8 +84,6 @@ class mail_integration {
|
|||||||
$sessionLocation = 'mail';
|
$sessionLocation = 'mail';
|
||||||
$mailbox = base64_decode($_GET['mailbox']);
|
$mailbox = base64_decode($_GET['mailbox']);
|
||||||
|
|
||||||
$GLOBALS['egw_info']['flags']['currentapp'] = $app;
|
|
||||||
|
|
||||||
if (!($GLOBALS['egw_info']['user']['preferences'][$sessionLocation]['saveAsOptions']==='text_only')&&is_array($_attachments))
|
if (!($GLOBALS['egw_info']['user']['preferences'][$sessionLocation]['saveAsOptions']==='text_only')&&is_array($_attachments))
|
||||||
{
|
{
|
||||||
// initialize mail open connection requirements
|
// initialize mail open connection requirements
|
||||||
@ -284,6 +283,10 @@ class mail_integration {
|
|||||||
// Get the registered hook method of requested app for integration
|
// Get the registered hook method of requested app for integration
|
||||||
$hook = $GLOBALS['egw']->hooks->single(array('location' => 'mail_import'),$app);
|
$hook = $GLOBALS['egw']->hooks->single(array('location' => 'mail_import'),$app);
|
||||||
|
|
||||||
|
// Load translation for the app since the original URL
|
||||||
|
// is from mail integration and only loads mail translation
|
||||||
|
translation::add_app($app);
|
||||||
|
|
||||||
// Execute import mail with provided content
|
// Execute import mail with provided content
|
||||||
ExecMethod($hook['menuaction'],array (
|
ExecMethod($hook['menuaction'],array (
|
||||||
'addresses' => $data_addresses,
|
'addresses' => $data_addresses,
|
||||||
|
Loading…
Reference in New Issue
Block a user