Translate legacy X-Kolab-Type 'application/x-vnd.kolab.contact.distlist' into the right object type (#2942)
This commit is contained in:
parent
c72d429872
commit
abcb2ac80f
1 changed files with 5 additions and 1 deletions
|
@ -208,7 +208,11 @@ abstract class kolab_format
|
||||||
*/
|
*/
|
||||||
public static function mime2object_type($x_kolab_type)
|
public static function mime2object_type($x_kolab_type)
|
||||||
{
|
{
|
||||||
return preg_replace('/dictionary.[a-z.]+$/', 'dictionary', substr($x_kolab_type, strlen(self::KTYPE_PREFIX)));
|
return preg_replace(
|
||||||
|
array('/dictionary.[a-z.]+$/', '/contact.distlist$/'),
|
||||||
|
array( 'dictionary', 'distribution-list'),
|
||||||
|
substr($x_kolab_type, strlen(self::KTYPE_PREFIX))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue