[eGroupWare-svn] r55930 - /branches/14.2/egroupware/api/src/Vfs/Links/StreamWrapper.php
[email protected] Fri, 29 Apr 2016 08:50:45 -0000
| Newsgroups | gmane.comp.web.egroupware.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: ralfbecker
Date: Fri Apr 29 10:50:45 2016
New Revision: 55930
URL: http://svn.stylite.de/viewvc/egroupware?rev=55930&view=rev
Log:
use vcard_charset preference for generating vcards for addressbook
Modified:
branches/14.2/egroupware/api/src/Vfs/Links/StreamWrapper.php
Modified: branches/14.2/egroupware/api/src/Vfs/Links/StreamWrapper.php
URL: http://svn.stylite.de/viewvc/egroupware/branches/14.2/egroupware/api/src/Vfs/Links/StreamWrapper.php?rev=55930&r1=55929&r2=55930&view=diff
==============================================================================
--- branches/14.2/egroupware/api/src/Vfs/Links/StreamWrapper.php (original)
+++ branches/14.2/egroupware/api/src/Vfs/Links/StreamWrapper.php Fri Apr 29 10:50:45 2016
@@ -286,7 +286,11 @@
{
list($id) = array_slice(explode('/',$url),-2,1);
$ab_vcard = new addressbook_vcal('addressbook','text/vcard');
- if (!($vcard =& $ab_vcard->getVCard($id)))
+ if (!($charset = $GLOBALS['egw_info']['user']['preferences']['addressbook']['vcard_charset']))
+ {
+ $charset = 'utf-8';
+ }
+ if (!($vcard =& $ab_vcard->getVCard($id, $charset)))
{
error_log(__METHOD__."('$url', '$mode', $options) addressbook_vcal::getVCard($id) returned false!");
return false;
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z