Changeset 5160 in subversion
- Timestamp:
- Sep 5, 2011 3:40:18 AM (21 months ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/rcube_vcard.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r5159 r5160 2 2 =========================== 3 3 4 - Fixed wrong vCard type parameter mobile (#1488067) 4 5 - Fixed vCard WORKFAX issue (#1488046) 5 6 - Add vCard's Profile URL support (#1488062) -
trunk/roundcubemail/program/include/rcube_vcard.php
r5159 r5160 52 52 ); 53 53 private $typemap = array('iPhone' => 'mobile', 'CELL' => 'mobile', 'WORK,FAX' => 'workfax'); 54 private $phonetypemap = array('HOME1' => 'HOME', 'BUSINESS1' => 'WORK', 'BUSINESS2' => 'WORK2', 'BUSINESSFAX' => 'WORK,FAX' , 'WORKFAX' => 'WORK,FAX');54 private $phonetypemap = array('HOME1' => 'HOME', 'BUSINESS1' => 'WORK', 'BUSINESS2' => 'WORK2', 'BUSINESSFAX' => 'WORK,FAX'); 55 55 private $addresstypemap = array('BUSINESS' => 'WORK'); 56 56 private $immap = array('X-JABBER' => 'jabber', 'X-ICQ' => 'icq', 'X-MSN' => 'msn', 'X-AIM' => 'aim', 'X-YAHOO' => 'yahoo', 'X-SKYPE' => 'skype', 'X-SKYPE-USERNAME' => 'skype'); … … 253 253 { 254 254 $field = strtolower($field); 255 $type = strtoupper($type);255 $type_uc = strtoupper($type); 256 256 $typemap = array_flip($this->typemap); 257 257 … … 302 302 303 303 case 'email': 304 $this->raw['EMAIL'][] = array(0 => $value, 'type' => array_filter(array('INTERNET', $type )));304 $this->raw['EMAIL'][] = array(0 => $value, 'type' => array_filter(array('INTERNET', $type_uc))); 305 305 $this->email[] = $value; 306 306 break; … … 319 319 320 320 case 'address': 321 if ($this->addresstypemap[$type ])322 $type = $this->addresstypemap[$type ];321 if ($this->addresstypemap[$type_uc]) 322 $type = $this->addresstypemap[$type_uc]; 323 323 324 324 $value = $value[0] ? $value : array('', '', $value['street'], $value['locality'], $value['region'], $value['zipcode'], $value['country']); … … 329 329 330 330 default: 331 if ($field == 'phone' && $this->phonetypemap[$type ])332 $type = $this->phonetypemap[$type ];331 if ($field == 'phone' && $this->phonetypemap[$type_uc]) 332 $type = $this->phonetypemap[$type_uc]; 333 333 334 334 if (($tag = self::$fieldmap[$field]) && (is_array($value) || strlen($value))) {
Note: See TracChangeset
for help on using the changeset viewer.
