Adding last two functions from i18n.php
[squirrelmail.git] / functions / attachment_common.php
index 22b0026d891b3f22de704c7b8cad253344ac3f9c..2f6e9b0599420a325ff46add5afa605df506de76 100644 (file)
@@ -9,8 +9,14 @@
  * This file provides the handling of often-used attachment types.
  *
  * $Id$
+ * @package squirrelmail
  */
 
+/**
+ * Needs documentation
+ */
+require_once(SM_PATH . 'functions/global.php');
+
 global $attachment_common_show_images_list;
 $attachment_common_show_images_list = array();
 
@@ -61,6 +67,7 @@ register_attachment_common('text/html',      'link_html');
 
 /* Register vcards */
 register_attachment_common('text/x-vcard',   'link_vcard');
+register_attachment_common('text/directory', 'link_vcard');
 
 /* Register rules for general types.
  * These will be used if there isn't a more specific rule available. */