mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
adding API version not old phpgwapi version to vCard
This commit is contained in:
parent
6566df4ff8
commit
f8049efd03
@ -203,7 +203,7 @@ class addressbook_vcal extends Api\Contacts
|
|||||||
function getVCard($_id,$_charset='UTF-8',$extra_charset_attribute=true)
|
function getVCard($_id,$_charset='UTF-8',$extra_charset_attribute=true)
|
||||||
{
|
{
|
||||||
$vCard = new Horde_Icalendar_Vcard($this->version);
|
$vCard = new Horde_Icalendar_Vcard($this->version);
|
||||||
$vCard->setAttribute('PRODID','-//EGroupware//NONSGML EGroupware Addressbook '.$GLOBALS['egw_info']['apps']['phpgwapi']['version'].'//'.
|
$vCard->setAttribute('PRODID','-//EGroupware//NONSGML EGroupware Addressbook '.$GLOBALS['egw_info']['apps']['api']['version'].'//'.
|
||||||
strtoupper($GLOBALS['egw_info']['user']['preferences']['common']['lang']));
|
strtoupper($GLOBALS['egw_info']['user']['preferences']['common']['lang']));
|
||||||
|
|
||||||
$sysCharSet = Api\Translation::charset();
|
$sysCharSet = Api\Translation::charset();
|
||||||
@ -1069,7 +1069,7 @@ class addressbook_vcal extends Api\Contacts
|
|||||||
function getGroupVCard(array $list,$version='3.0')
|
function getGroupVCard(array $list,$version='3.0')
|
||||||
{
|
{
|
||||||
$vCard = new Horde_Icalendar_Vcard($version);
|
$vCard = new Horde_Icalendar_Vcard($version);
|
||||||
$vCard->setAttribute('PRODID','-//EGroupware//NONSGML EGroupware Addressbook '.$GLOBALS['egw_info']['apps']['phpgwapi']['version'].'//'.
|
$vCard->setAttribute('PRODID','-//EGroupware//NONSGML EGroupware Addressbook '.$GLOBALS['egw_info']['apps']['api']['version'].'//'.
|
||||||
strtoupper($GLOBALS['egw_info']['user']['preferences']['common']['lang']));
|
strtoupper($GLOBALS['egw_info']['user']['preferences']['common']['lang']));
|
||||||
|
|
||||||
$vCard->setAttribute('N',$list['list_name'],array(),true,array($list['list_name'],'','','',''));
|
$vCard->setAttribute('N',$list['list_name'],array(),true,array($list['list_name'],'','','',''));
|
||||||
|
Loading…
Reference in New Issue
Block a user