Prechádzať zdrojové kódy

Add default ability to view calendar attachments sent as application/ics

pdontthink 4 rokov pred
rodič
commit
70ecd67cf2
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  1. 3 0
      functions/attachment_common.php

+ 3 - 0
functions/attachment_common.php

@@ -93,6 +93,9 @@ register_attachment_common('text/html',      'link_html');
 register_attachment_common('text/x-vcard',   'link_vcard');
 register_attachment_common('text/x-vcard',   'link_vcard');
 register_attachment_common('text/directory', 'link_vcard');
 register_attachment_common('text/directory', 'link_vcard');
 
 
+/* Register ics (calendar) */
+register_attachment_common('application/ics',  'link_text');
+
 /* Register rules for general types.
 /* Register rules for general types.
  * These will be used if there isn't a more specific rule available. */
  * These will be used if there isn't a more specific rule available. */
 register_attachment_common('text/*',  'link_text');
 register_attachment_common('text/*',  'link_text');