control the availabilityof the stylite app, before trying to offer the mail VCard feature, because stylite.links:// is used/needed here

This commit is contained in:
Klaus Leithoff 2011-12-16 11:26:01 +00:00
parent cc86326cb4
commit 28c42cc78d
3 changed files with 5 additions and 3 deletions

View File

@ -585,7 +585,7 @@ class addressbook_ui extends addressbook_bo
$this->prefs['document_dir'], $group, 'Insert in document', 'document_',
$this->prefs['default_document'], $this->config['contact_export_limit']
);
if ($GLOBALS['egw_info']['user']['apps']['felamimail'])
if (isset($GLOBALS['egw_info']['apps']['stylite']) && $GLOBALS['egw_info']['user']['apps']['felamimail'])
{
$actions['mail'] = array(
'caption' => lang('Mail VCard'),

View File

@ -248,7 +248,7 @@ class felamimail_hooks
$folderList['none'] = lang('no folders');
/* Settings array for this app */
return array(
$settingsArray = array(
'refreshTime' => array(
'type' => 'select',
'label' => 'Refresh time in minutes',
@ -555,6 +555,8 @@ class felamimail_hooks
'forced' => 'felamimail',
),
);
if (!$GLOBALS['egw_info']['apps']['stylite']) unset($settingsArray['attachVCardAtCompose']);
return $settingsArray;
}
/**

View File

@ -222,7 +222,7 @@
// all values are empty for a new compose window
$sessionData = $this->bocompose->getSessionData();
$alwaysAttachVCardAtCompose = false; // we use this to eliminate double attachments, if users VCard is already present/attached
if ((isset($this->bocompose->preferencesArray['attachVCardAtCompose']) &&
if ( isset($GLOBALS['egw_info']['apps']['stylite']) && (isset($this->bocompose->preferencesArray['attachVCardAtCompose']) &&
$this->bocompose->preferencesArray['attachVCardAtCompose']))
{
$alwaysAttachVCardAtCompose = true;